Commit beace58e by BellCodeEditor

auto save

parent f90d9148
Showing with 0 additions and 13 deletions
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