Commit b97d5e82 by BellCodeEditor

save project

parent 024fb164
Showing with 34 additions and 0 deletions
message=input("你要加密什么密语?")
key="!@#$%^&*(*&^%$#@#$%)(*&^%$#)"
import random
str5=""
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
str4=str1+str2+str3
str5=str5+str4
print(str5)
noise="!@#$%%$%^*&~~"
list1=list(str5)
index=random.randint(0,len(list1))
list1.insert(index,noise)
str6="".join(list1)
print(str6)
def new_input():
list1=[]
while True:
data=input("请输入一个数字:")
if data=="stop":
break
else:
try:
data_1=int(data)
except:
print("格式错误,请输入数字!")
else:
list1.append(data_1)
print(list1)
new_input()
\ 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