Commit b0f983d7 by BellCodeEditor

auto save

parent 79353ebc
Pipeline #5777 failed in 0 seconds
Showing with 35 additions and 9 deletions
students = ["悟空", "小贝", "八戒", "波奇"]
import random
message = input("请输入加密文本:")
key="发给色弱的v桂673芳是iergyufvuyrgtghrtgutreygy26456734582558643"
key2="合35344格后通54过户434345数353黑人抬353棺花g5634土沟混啊"
# 请对message进行遍历,取出所有元素
text_1=""
for i in message:
str1=random.choice(key)
str2=random.choice(key)
text=i+str1+str2
text_1+=text
text_2=list(text_1)
text_2_num=len(text_2)
num=random.randint(0,text_2_num)
text_2.insert(num,key2)
text_3="".join(text_2)
print(text_3+str(num))
# 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除
?
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面
?
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组,
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组
red = ?
blue = ?
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