![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
我的python
1丝清风
这个作者很懒,什么都没留下…
展开
-
IndentationError: unexpected indent,SyntaxError: invalid syntax,TypeError: object() takes no paramet
出现3个错误, IndentationError: unexpected indent 这个是因为缩进不对, 第一行class 前面多了一个空格 SyntaxError: invalid syntax 这个是因为,Python的class要小写的 TypeError: object() takes no parameters 这个,, 构造方法两边的下划线 各有2段~~~原创 2017-12-20 20:42:10 · 1316 阅读 · 0 评论 -
python 代码测试 显示完成0个测试
class Employee(): def __init__(self,first_name,last_name,salary): self.first_name=first_name self.last_name=last_name self.salary=salary def get_raise(self,step=5000):原创 2017-12-22 22:04:44 · 463 阅读 · 0 评论