Commit d39eb1a0 by BellCodeEditor

auto save

parent 3032e95e
Showing with 32 additions and 11 deletions
m="诺依,周末一起去看动漫展吧!"
for i in m:
print(i)
\ No newline at end of file
m="诺依,周末一起去看动漫展吧!"
l = len(m)
i = 0
while i < l:
e = m[i]
print(e)
i += 1
\ No newline at end of file
import random
key = "电动车保护协会筹备小组副部长"
m="诺依,周末一起去看动漫展吧!"
key_m=""
db="!@#$@#$%^&***&^&%$"
for i in m:
str1=i
str2=random.choice(key)
str3=random.choice(key)
text = str1+str2+str3
key_m=key_m+text
list_m=list(key_m)
index=random.randint(0,len(key_m))
list_m.insert(index,db)
result_m="".join(list_m)
print(result_m)
\ No newline at end of file
a=["华雄"]
a.insert(1,"关羽")
print(a)
c=["颜良","文丑"]
a.extend(c)
print(a)
\ No newline at end of file
name='坤'
name='坤'
power=11
hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98]
for i in range(len(hero)):
for i in range(5,10:
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
......
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