- 博客(3)
- 收藏
- 关注
原创 Python生兔子问题
Python生兔子问题(斐波那契数列) while 1: a=int(input()) b=int(1) c=int(1) zs=int(0) if a<=2: print(1) else: for i in range(2, a, 1): zs = b + c b = c c = zs print(zs)
2020-08-11 09:24:14
535
原创 Python根据身份证得知性别
python根据身份证得知性别 while 1: e=input() a=int(e[16])%2 if a==1: print(“Boy”) else: print(“Girl”)
2020-08-03 15:58:20
6156
原创 Python根据身份证获取星座
Python根据身份证获取星座 while 1: sfz=input() month=int(sfz[10:12]) day=int(sfz[12:14]) n = (‘SP’, ‘SY’, ‘BY’, ‘JN’, ‘SZ’, ‘JX’, ‘SZZ’, ‘CN’, ‘TC’, ‘TX’, ‘SS’, ‘MJ’) d = [[1, 20], [2, 19], [3, 21],[4, 21], [5, 21], [6, 22], [7, 23], [8, 23], [9, 23], [10, 23], [11,
2020-08-03 15:56:31
2185
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人