python
mzlz
各种设计,静态页面,JAVAweb
展开
-
石头剪刀布游戏(python编程)
代码: a = input() n=int(a) sumA=0 sumB=0 for i in range(0,n): t1, t2 = map(int, input().split()) if (t1==0 and t2==1) or (t1==1 and t2==2) or (t1==2 and t2==0): sumA+=2 else: if (t2==0 and t1==1) or (t2==1 and t1==2) or (t2==2..原创 2020-05-17 15:00:52 · 1078 阅读 · 0 评论 -
是否能获得奖杯(python编程)
代码: a = input() n=int(a) t=[] tem=0 for i in range(0,n): t1, t2 = map(int, input().split()) if t1>=10 or t2>=20: t.append('True') #print("True") else: t.append('False') #print("False") for i in t: ...原创 2020-05-17 14:59:39 · 254 阅读 · 0 评论