- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 Python3:类和对象-烤地瓜
#定义一个类表示烤地瓜class Sweetpotato: '''这是一个烤地瓜类''' def __init__(self): self.cookedLevel = 0 self.cookedString = '生的' self.condiments = [] #输出信息 def __str__(self):...
2019-01-07 10:32:53 207 1
原创 Python3:使用函数计算-输入日期,计算该日期是当年中第多少天
#使用函数判断某日是一年内第多少天#判断是否是闰年函数def leapYear(year): if year%400 == 0 or (year%4 == 0 and year%100 != 0): return 1#使用列表统计一个年中每个月有多少天def monthDays(year): if leapYear(year): month...
2019-01-04 08:34:22 2438 1
绿色csf文件播放器
2010-04-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人