Python3 problem TypeError: object() takes no parameters

1. Keyword variables and special functions in Python are represented by __xxx__

   Friends who are beginners in Python need to pay attention to the two underscores (_) before and after the variable name. If you do not pay attention, errors will occur when calling internal keyword variables and special functions:

NameError: name '_name_' is not defined</span> 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324970880&siteId=291194637