2019年1月30日
摘要: python中 类 class 类名: def __init__(self): 这__init__ 叫构造方法。在执行obj=类名() 时自动调用,后面必须是类名,不能是类名.方法名 若init后括号后再加有参数则,在调用是也必须加入参数 阅读全文
posted @ 2019-01-30 15:16 Jarrel 阅读(98) 评论(0) 推荐(0)
摘要: 小细节吧 阅读全文
posted @ 2019-01-30 15:00 Jarrel 阅读(198) 评论(0) 推荐(0)