Commit 8ce9d923 by BellCodeEditor

auto save

parent ed89be02
Pipeline #5124 failed in 0 seconds
Showing with 40 additions and 7 deletions
annnnn=input("请输入你要便利的字符:")
for i in annnnn:
print(i)
#调用 random 模块
import random
#Key=&^*&*^*
#message =%^&*(*&^&^)
key="何况人him慧可慧可慧可红恶口可调节诶是看过么就下诶赛车看完记得家啊卡基督教思想开车门吗我就在空间查看vii下"
message = "贾晓鹏,周末一起打游戏吧(heping)"
#把random中的choice赋值给str
str=random.choice(key)
#把密钥赋值
key_messge=""
#for 的便利
for i in message:
#调用random中的choice赋值给a1a2a3
a1=random.choice(key)
a2=random.choice(message)
a3=random.choice(message)
#把a1a2a3赋值给texe
texe = a1+a2+a3
#防止覆盖
key_messge=key_messge+texe
#打印key_messge
print(key_messge)
students = ["悟空", "小贝", "八戒", "波奇"]
# 八戒因为要回老家,转学了,请将八戒从班级列表名单中删除
?
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面
?
students.pop(-2)
print(students)
# 班上来了一个新同学,名叫"诺依",请将"诺依"加入到班级名单里面hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
students.append("诺依"
print(students)
# 班上准备开始辩论赛,分为红(red)、蓝(blue)组,
# 请用切片将班级列表的前2名加入到红组,后2名加入到蓝组
red = ?
blue = ?
red=students[:2]
blue=students[2:]
print(red)
print(blue)
\ 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