Detailed map traversal, teach you to master the complex gremlin query debugging method>>>
'''
Createdon2016��4��26��
@author:zf
'''
classHello:
#���췽��_init_
def_init_(self,name):
self.name=name
defsayHello(self):
print("Hello{0}".format(self.name))
h=Hello("Python")
h.sayHello()
There was an error in object() takes no parameters when running. I didn’t find it at first, then I found it__ init__ ( CTRL +/verify is double dash, I only use one dash)
Reference blog: http://blog.csdn.net/liyajuan521/article/details/44409877
Similar Posts:
- Python: __ new__ Method and the processing of typeerror: object() takes no parameters
- pycharm please specify a different SDK name
- TypeError: a bytes-like object is required, not ‘str‘
- Proxy error: Could not proxy request
- AttributeError: ‘NoneType‘ object has no attribute ‘append‘
- 「ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory」
- AttributeError: ‘module’ object has no attribute ‘main’
- How to Solve TypeError: object() takes no parameters
- Installing mingw64 and msys2 in win10
- Error interpreter field is empty when installing pychar to create a new project. Run the python program