Commit 65c6597e by BellCodeEditor

save project

parent 73fb931e
Showing with 16 additions and 11 deletions
n=input("name:")
p=input("power:")
a=int(p)
h=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98,'张宇',100]
for i in range(len(h)):
if i%2==1 and a<=h[i]:
h.insert(i-1,n)
h.insert(i,a)
break
print(h[len(h)-6:len(h)])
\ No newline at end of file
import random
j=""
a="是团队的荣耀"
b="1231stddry阿巴"
k="*&^%$#@!"
for i in a:
str1=i
str2=random.choice(b)
str3=random.choice(b)
r=str1+str2+str3
j=j+r
z=list(j)
z.insert(random.randint(0,len(z)),k)
x="".join(z)
print(x)
\ 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