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 #for i in range(len(list_hero)):
message = "诺依,周末一起去看动漫展吧!" # if i%2==1 and list_hero[i]>=power:
key="abcdqw使用编程真的太好玩了" # list_hero.insert(i-1,name)
key_message="" # list_hero.insert(i-1,power)
noice="/.../>>//" # break
for i in message: #print(list_hero)
str1=i dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
str2=random.choice(key) print(dict_hero)
str3=random.choice(key) \ No newline at end of file
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)
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