dic={'太阳花':(5,12),'牵牛花':(5,11),'天竺葵':(10,6),'三角梅':(7,3),'月季':(4,11),'倒挂金钟':(4,1),'茑萝':(7,11)}
dic={'太阳花':(5,12),'牵牛花':(5,11),'天竺葵':(10,6),'三角梅':(7,3),'月季':(4,11),'倒挂金钟':(4,1),'茑萝':(7,11)}
print("花卉 花期")
for i in dic.items():
ls = list(i)
enddata = int(ls[1][1])
if enddata == 1:
print(ls[0], " {}-{}月".format(ls[1][0], 12))
else:
print(ls[0]," {}-{}月".format(ls[1][0],int(ls[1][1])-1))
dic = {'太阳花': (5, 12), '牵牛花': (5, 11), '天竺葵': (10, 6), '三角梅': (7, 3), '月季': (4, 11), '倒挂金钟': (4, 1), '茑萝': (7, 11)}
print('花卉\t花期')
for key in dic:
end = dic[key][1] - 1
if end == 0:
end = 12
print('%s\t%d-%d月' % (key, dic[key][0], end))