magic method,php C UNix c QT C++ MFC里面也有魔术方法
2016-11-14
多继承javac#sharp.net里面没有,c++里面有,
VB,PHP,Perl,Ruby,shell,javascript有没有
VB,PHP,Perl,Ruby,shell,javascript有没有
2016-11-14
同样的代码:结果也能打印出来但是会出现Warning,求解?
call __new__method
('Alert', 20)
call __init__method
{'age': 20, 'name': 'Alert'}
/Users/EdwardAdmin/PycharmProjects/PythonCode/CreateMagicMethod.py:7: DeprecationWarning: object.__new__() takes no parameters
return super(Programer,cls).__new__(cls,*args,**kwargs)
call __new__method
('Alert', 20)
call __init__method
{'age': 20, 'name': 'Alert'}
/Users/EdwardAdmin/PycharmProjects/PythonCode/CreateMagicMethod.py:7: DeprecationWarning: object.__new__() takes no parameters
return super(Programer,cls).__new__(cls,*args,**kwargs)
2016-11-10