Traceback (most recent call last):
File “D:\Code\python\learn_heima\第二阶段\113_clock.py”, line 33, in
stu = student(“小周”,21,“18511111111”)
TypeError: student() takes no arguments
报错原因:检查你的 def __init__()
函数是不是少了一个i,写成了def __int__()
这样
Traceback (most recent call last):
File “D:\Code\python\learn_heima\第二阶段\113_clock.py”, line 33, in
stu = student(“小周”,21,“18511111111”)
TypeError: student() takes no arguments
报错原因:检查你的 def __init__()
函数是不是少了一个i,写成了def __int__()
这样