Commit f42606b6 by BellCodeEditor

save project

parent 220fe62b
Showing with 17 additions and 0 deletions
ccd=input("玩家出拳:石头、剪刀、布")
print(ccd)
import random
listt=["石头","剪刀","布"]
ook=random.choice(listt)
print(ook)
if ccd==ook:
print("平局")
elif ccd=="石头" and ook=="剪刀":
print("胜利")
elif ccd=="剪刀" and ook=="布":
print("胜利")
elif ccd=="布" and ook=="石头":
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