Commit a7c325c0 by BellCodeEditor

save project

parent 6ac22574
Showing with 2 additions and 1 deletions
...@@ -2,5 +2,5 @@ player=input("请出石头/剪刀/布")# 玩家出拳 ...@@ -2,5 +2,5 @@ player=input("请出石头/剪刀/布")# 玩家出拳
print(player) print(player)
#计算机出拳 #计算机出拳
import random import random
computer=[石头","剪刀",""] computer=["石头","剪刀","布"]
print(random.choice(computer)) print(random.choice(computer))
\ 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