Python NameError when var IS most definitely defined

后端 未结 3 778
遇见更好的自我
遇见更好的自我 2021-01-15 01:51
def make_pdf(self):
        self.get_filez()
        self.get_client()
        file_name = self.client_id+\"_\"+self.client_name+\"_\"+self.batch_num
        style =         


        
3条回答
  •  忘掉有多难
    2021-01-15 02:45

    Mysterious NameErrors may arise from your file containing invisible control characters. On unix machines, you can spot these errors by looking at the output of

    cat -A filename.py
    

提交回复
热议问题