Commit 51934e9f by BellCodeEditor

save project

parent 4afa0837
Showing with 29 additions and 4 deletions
ee/////////////////////////////////////////////////////////////
/ = input("你出啥")
print = ("玩家出"+player)
import random
aa=["石头","剪刀","布"]
A = random.choice(aa)
print(A)
if player==computer:
print("平局")
elif player=="石头" and computer=="剪刀" or player=="剪刀" and computer=="布" or player=="布" and computer=="石头":
print("你赢了")
else:
print("你输了")
\ No newline at end of file
import random
aa=["石头","剪刀","布"]
A = random.choice(aa)
print("计算机出"+A)
import random
player=input("你出啥") player=input("你出啥")
print=("玩家出"+player) print=("玩家出"+player)
import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
a=random.choice(list) computer=random.choice(list)
print(a) print("计算机出"+computer)
\ No newline at end of file if player==computer:
print("平局")
elif player=="石头" and computer=="剪刀" or player=="剪刀" and computer=="布" or player=="布" and computer=="石头":
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