Commit c71381c6 by BellCodeEditor

save project

parent fae2d54b
Showing with 8 additions and 0 deletions
...@@ -5,5 +5,7 @@ while i < length: ...@@ -5,5 +5,7 @@ while i < length:
element = message[i] element = message[i]
print(message) print(message)
i += 1 i += 1
list_message = list(key_message)
list_message.insert(5,noise)
# 请使用索引的知识,取出message所有元素(不用遍历的方式) # 请使用索引的知识,取出message所有元素(不用遍历的方式)
\ No newline at end of file
import random
key ="信息"
str = random.choice(key)
print(str)
\ 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