Commit 13e4087b by BellCodeEditor

save project

parent 450ef9a2
Showing with 2 additions and 2 deletions
# 玩家出拳
import random
c=['布','剪刀','石头']
computer=random.choice(c)
computer=random.choices(c)
a=input('请输入:')
print('player:'+a)
print('computer:'+computer)
......
......@@ -2,7 +2,7 @@
import random
a=input('请输入:')
c1=['布','剪刀','石头']
computer=(random.choice(c1)
computer=str(random.choice(c1))
print('player:',a)
print('computer:',computer)
if a in c1:
......
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