Commit a00a338f by BellCodeEditor

save project

parent 14c55685
Showing with 7 additions and 0 deletions
...@@ -5,4 +5,5 @@ while i < lenji: ...@@ -5,4 +5,5 @@ while i < lenji:
element=message[i] element=message[i]
print(element) print(element)
i+=1 i+=1
# 请使用索引的知识,取出message所有元素(不用遍历的方式) # 请使用索引的知识,取出message所有元素(不用遍历的方式)
\ No newline at end of file
import random
ker="将动物烤漆房企鹅和哈勒护肤了情人湖付了钱"
str=random.choice(ker)
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