Commit fe831757 by BellCodeEditor

save project

parent 8d6cdcc7
Showing with 8 additions and 6 deletions
......@@ -3,8 +3,10 @@ print(message[0:15])
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
import random
key="ahciekdlonbdqushwndaijs"
for i in range(15):
str1=random.choice(key)
str2=random.choice(key)
text=message[i]+str1+str2
print(text,end="")
\ No newline at end of file
abc=""
for i in message:
str1=str(random.choice(key))
str2=str(random.choice(key))
str3=i+str1+str2
abc=abc+str3
print(abc)
\ 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