Commit fb419804 by BellCodeEditor

save project

parent b6af8a89
Showing with 12 additions and 17 deletions
#name=input('你叫什么名字')
#powe=int(input('你臂力是多少'))
#list_hero=['猴三',10,'猴一',21,'猴五',22,'猴队长',29,'猴七',30]
import random
message = "诺依,周末一起去看动漫展吧!"
key="abcdqw使用编程真的太好玩了"
key_message=""
noice="/.../>>//"
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
diy=str1+str2+str3
key_message=key_message.diy
list_message=list(key_message)
b=random.randint(0,len(key_message))
list_message.insert(b,noice)
result_message=""join(list_message)
print(result_message)
#for i in range(len(list_hero)):
# if i%2==1 and list_hero[i]>=power:
# list_hero.insert(i-1,name)
# list_hero.insert(i-1,power)
# break
#print(list_hero)
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
print(dict_hero)
\ 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