Commit 9f42ea31 by BellCodeEditor

save project

parent 387f25ad
Showing with 12 additions and 2 deletions
message = "S"
print(message[0])
import random
message = "SBSB"
key = "WCWCWCWCWCWCWCWC"
key_message=""
for i in message:
s1=i
s2=random.choice(key)
s3=random.choice(key)
s4=s1 + s2 + s3
key_message +=s4
print(key_message)
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
\ 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