Commit 56bfea3a by BellCodeEditor

save project

parent 20c3dca7
Showing with 10 additions and 3 deletions
player=input("skfaj;slfjsdlkfaslfjasdkfj;sldkfj;alskdfds") player=input("skfaj;slfjsdlkfaslfjasdkfj;sldkfj;alskdfds")
print("玩家出拳:"+player) print("玩家出拳:"+player)
import random import random
list=("a","b","c") list=["a","b","c"]
computer=random.choice(list) computer=random.choice(list)
print("rehgfbjhfdgfdihgdriughd"+computer) print("rehgfbjhfdgfdihgdriughd"+computer)
\ No newline at end of file if player==computer:
print("pinjju")
elif player=="剪刀" and computer=="布"
print("你赢了")
elif player=="布" and computer=="石头"
print("你赢了")
elif player=="石头" and computer=="剪刀"
print("你赢了")
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