Commit d445063e by BellCodeEditor

save project

parent df897058
Showing with 7 additions and 2 deletions
......@@ -3,4 +3,10 @@ miyifan=input('出啥')
print('玩家出'+miyifan)
import random
ppp=random.choice(['石头','剪刀','布'])
print('机器出'+ppp)
\ No newline at end of file
print('机器出'+ppp)
if miyifan=ppp:
print('打平了')
elif (miyifan='石头' and ppp='剪刀') or (miyifan='剪刀' and ppp='布') or (miyifan='布' and ppp='石头'):
print('你赢了')
else :
print('你输了')
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