Commit 6b113616 by BellCodeEditor

auto save

parent 4cac003e
Showing with 38 additions and 3 deletions
import random
import time
print('您好,我是N2024_10')
time.sleep(2)
print('我们玩石头剪刀布吧')
time.sleep(2)
player=input('请出拳(石头/剪刀/布):')
list1=['石头','剪刀','布']
computer=random.choice(list1)
print('玩家:'+player)
print('N2024_10:'+computer)
if player=='石头' or player=='剪刀' or player=='布':
if player==computer:
print('N2024_10:'+'平局')
elif player=='石头'and computer=='剪刀':
print('N2024_10:'+'恭喜,你赢了')
elif player=='剪刀'and computer=='布':
print('N2024_10:'+'恭喜,你赢了')
elif player=='布'and computer=='石头':
print('N2024_10:'+'恭喜,你赢了')
else:
print('N2024_10:'+'很遗憾,你输了')
else:
print('N2024_10:'+'你出的啥玩意儿?看不懂!')
time.sleep(2)
print('你是不是想耍赖?!')
time.sleep(2)
print('菜,就多练')
time.sleep(1)
print('输不起,就别玩')
time.sleep(1)
print('以前是以前,')
time.sleep(1)
print('现在是现在,')
time.sleep(1)
print('你咋这么菜呢?')
time.sleep(1)
\ No newline at end of file
neme=input("输入名字")
print(neme+"你好啊")
\ 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