W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_class_5.py:
class Person: def __init__(mysillyobject, name, age): mysillyobject.name = name mysillyobject.age = age def myfunc(abc): print("Hello my name is " + abc.name) p1 = Person("Bill", 63) p1.myfunc()