Commit 3f632cf8 by BellCodeEditor

save project

parent 81a75c45
Showing with 13 additions and 2 deletions
# 我们都爱夸夸夸
\ No newline at end of file
import random
P = input('请问出:剪刀,石头,布')
print('玩家出拳:'+P)
c = ['剪刀,石头,布']
if p == 'q'
co = random.c(c)
if p == co:
print('平局')
elif (p == '石头'and co == '剪刀') or (p == '剪刀' and co == '布') or (p =='布' and co == '石头'):
print('1')
else:
print('0')
\ 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