摘要:
#类和对象 class Human: #属性 -> 成员属性(变量) ear = 2 mouth = 1 sex = 'man' age = 28 name = 'zhangwang' married = False color = 'yellow' #特征 -> 成员方法(函数) def walk(self): ... 阅读全文
摘要:
#calendar日历模块 import calendar #calendar() 获取一年日历 result = calendar.calendar(2018,w = 2,l = 1,c = 6,m = 3) print(result) #获取指定月份的日历 result = calendar.month(2017,11,w = 4,l = 3) print(result) #month... 阅读全文