Commit 6b304cd0 by BellCodeEditor

save project

parent fe8556fe
Showing with 4 additions and 0 deletions
......@@ -5,9 +5,12 @@ while True:
LDD=random.choice(list)
print('人机出拳:'+LDD)
print('真人出拳:'+plaryer)
if plaryer in list:
if plaryer==LDD:
print('平局')
elif (LDD=='石头'and LDD=='布')or(LDD=='剪刀'and LDD=='石头')or(LDD=='布'and LDD=='剪刀'):
print('你赢了')
else:
print('你输了')
else:
print('输入错误')
\ 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