Commit a7d60811 by BellCodeEditor

save project

parent 1f988ec8
message=input("你要加密什么密语?")
key="!@#$%^&*(*&^%$#@#$%)(*&^%$#)"
import random
str5=""
import hh
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)
data=hh.new_input()
score=hh.count(data)
print("wertyuufuytyt:"+str(score))
\ No newline at end of file
......@@ -16,6 +16,7 @@ def new_input():
new_data=new_input()
print(new_data)
def count(new_data):
total=0
for i in new_data:
......
import turtle
\ No newline at end of file
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)
return(list1)
new_data=new_input()
print(new_data)
def count(new_data):
total=0
for i in new_data:
total=total+i
print(total)
return(total)
count(new_data)
\ No newline at end of file
ij=open(r'C:\Users\777\Desktop\tfgyfyhyfhgyvh.txt','w',encoding='utf-8')
ij.write('sfcdrtgfdfgygtiufytyuhgyd7ggtdrugygfffgiuftyuxyutfdfiudtyufgtcdfffffffffffffffffggggggggggggggggggggggggggggggggggggggggcccccccccccccccccccccccccccccccuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuutttttttttttttttttttttttttttttttttttttttxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyccccccccccccccccccccccccccccccccchhhhhhhhhhhhhhhhhhhhhhhhhvvvvvvvvvvvvvvvvvvvvvvvvvvujjjj')
ij.close()
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
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