Commit e4ca565e by BellCodeEditor

auto save

parent a9c463e7
name=input("你叫啥?")
print(",你是最棒的")
\ No newline at end of file
num=67
age=float(input('请输入数字'))
if age>num:
print('猜大了')
elif age==num:
print('恭喜你,猜对了')
elif age<num:
print('猜小了')
\ No newline at end of file
age=float(input('请输入体重:'))
ade=float(input('请输入身高:'))
bmi=age/ade**2
if bmi<=18.4:
print('偏瘦')
elif bmi>=18.5 and bmi <=23.9:
print('正常')
elif 24.0<=bmi <=27.0:
print('过重')
elif bmi>=28:
print('肥胖')
\ No newline at end of file
a=["1"]
b=["0","1","2","3","4","5","6"]
a.extend(b[2:5])
print(a)
b=["1","2","3","4"]
b.pop(3)
print(b)
player = input("石头/剪子/布:")
print("玩家请出拳"+player)
import random
list=["石头","剪子","布"]
computer=random.choice(list)
print("计算机出拳:"+computer)
if play == computer:
print("平局")
elif (player=="石头" and computer=="剪刀")or(player=="剪刀" and comput=="石头"):
print("恭喜你赢了")
else:
print("很遗憾你输了")
name="l"
power=66
hero=["1",30,"2",37,"3",52,"4",89,"5",98]
for i in range(len(hero)):
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
break
print(hero)
\ No newline at end of file
a=["华"]
a.insert(1,"关")
print(a)
a=["华"]
c=["颜","文"]
a.extend(c)
print(a)
\ 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