Commit 25caafef by BellCodeEditor

auto save

parent b3fe85bb
Showing with 44 additions and 9 deletions
# 玩家出拳 # 玩家出拳
import random import random
n=input('请输入:') player=input('请输入:')
print('玩家出拳',n) print('玩家出拳',player)
t=["石头","剪刀","布"] list=["石头","剪刀","布"]
c=random.choice(t) computer=random.choice(list)
print('电脑出的是',c) print('电脑出的是',computer)
list = ['石头','剪刀','布']
computer = random.choice(list)
print('电脑出拳') if player == computer:
\ No newline at end of file if player == computer:
print("平局")
elif (player=="石头" and computer=="剪刀")or(player=="剪刀" and computer=="布"):
print("恭喜,你赢了")
else:
print("你输了")
else:
print("错误")
\ No newline at end of file
h=input("请输入:")
s=input("请输入:")
print(h +'成绩是:'+s)
\ No newline at end of file
player=input('请输入:')
list=["ipad","电脑","糖果"]
mm=random.choice()
print('player'+'你的是'+mm)
\ No newline at end of file
import random
week=input("今天星期几")
if week == '星期一':
print(week+'学钢琴')
elif week == '星期三':
print(week+'学编程'):
elif week == '星期六':
print(week+'学English'):
else:
print("学中文")
else:
print("错误")
\ No newline at end of file
a1=input('jrgrhrf')
a2=input('ry4th5t')
if a1 ==:
pass
\ 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