Commit e5daf5ca by BellCodeEditor

save project

parent 4dd4a417
m="诺伊,周末一起去1"
for i in m:
print(i)
s="kzjxklkszsandkdsknckndkcds/'\;l"
l=len(s)
i=0
while i<l:
a=s[i]
print(a)
i=i+1
\ No newline at end of file
s="kzjxklkszsandkdsknckndkcds/'\;l"
l=len(s)
i=0
while i<l:
a=s[i]
print(a)
i=i+1
#for i in range(10)
import random
k="iwdsadsnc"
s=random.choice(k)
print(s)
\ No newline at end of file
import random
s=" "
k="weweeweweweweweweww"
w="伟大坚强"
se=input("")
for b in se:
s1=b
s2=random.choice(k)
s3=random.choice(k)
t=s1+s2+s3
s=s+t
l=list(s)
p=random.randint(0,len(l))
l.insert(p,w)
v="".join(l)
print(v)
# 臂力挑战赛
# 快用你机灵的小脑瓜想想,如何将刘强和他的臂力值自动插入到hero列表中?
name=input("你叫什么名字?")
power=int(input("你的臂力值是多少?"))
hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',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[6:12])
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