Commit 6ac22574 by BellCodeEditor

save project

parent 2d13f12d
Showing with 3 additions and 3 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 \ 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