Commit b292690d by BellCodeEditor

save project

parent 8c7b97cb
Showing with 16 additions and 3 deletions
...@@ -7,13 +7,13 @@ while True: ...@@ -7,13 +7,13 @@ while True:
c=random.choice(b) c=random.choice(b)
print("电脑:"+c) print("电脑:"+c)
if a in b: if a in b:
if a==b: if a==c:
print("平局") print("平局")
elif a=="剪刀" and b=="布": elif a=="剪刀" and b=="布":
print("你赢了") print("你赢了")
elif a=="布" and b=="石头": elif a=="布" and c=="石头":
print("你赢了") print("你赢了")
elif a=="石头" and b=="剪刀": elif a=="石头" and c=="剪刀":
print("你赢了") print("你赢了")
else: else:
print("你输了") print("你输了")
......
a=input("今天星期几?")
a=input("今天星期几?")
if a=="星期三":
print("今天学编程")
elif a=="星期六":
print("今天学英语")
elif a=="星期一":
print("今天学钢琴")
else:
print("今天学国学")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment