【拉勾3期】python 脚本编写实战(二)- 作业帖

作业1:
父类:笔 (方法:写字);
子类:钢笔(方法:重写写字,要先判断是不是有钢笔水)、
签字笔(重写写字,先判断是不是有水)、
铅笔(重写写字,先判断是不是削好了铅笔)、
自动铅笔(重写写字,先判断是不是有自动铅)

作业2:文件是python_work2.py
https://github.com/niujiama/LilyGithub.git

脚本二:
https://github.com/ygl6532/testing/tree/master/python02

https://github.com/JuliaZxr/hogwarts_lg3_Yuki.git

https://github.com/jijiangyongyou/win_happy/commit/a7a2917a743c9936035e3858fdefbdc3a3a1d75a

https://github.com/len-zhang/hogwarts_python_zuoye2.git

https://github.com/z1069867141/hogwarts_lg

#python实战二作业
https://github.com/linpeijie-python/linpeijiecode/tree/master/python_practice/homework2

https://github.com/Lei0007/xiaohongxing/tree/master/hometown

python第二次实战
https://github.com/sunyn218/hogwarts.git

https://github.com/xiaomaolv60/abc.git

https://github.com/youthtail/hogwarts_yhh/tree/master/python_1/practice2

https://github.com/xym9527/GameTest

Python第二次作业
https://github.com/Vena-ww/MyPythonTest

https://github.com/sunybee/homework3/blob/master/learnclass123.py
https://github.com/sunybee/homework3/blob/master/tianshantonglaoclass.py

https://github.com/kakalincjl/hogwarts_lg3_danchaofan/tree/exercise_2

第一次作业写的挺好的,两个demo分别使用了不同的方法去调用父类
第二次作业
1、xuzhu集成了tonglao类,但是在最后调用时,没有通过子类调用父类的方法,而是通过父类调用了父类的方法
2、xuzhu类继承了tonglao类,而tonglao类有两个入参,再实例化时,没有传入参

虚竹子类继承tonglao即可,不用再去调用父类,因为你没用到父类的属性