Commit 99b73ace by BellCodeEditor

save project

parent 80033c54
Pipeline #3086 failed in 0 seconds
Showing with 27 additions and 0 deletions
sr_=[]
sr__=''
yn=int(input("加密/解密(1/2):"))
if yn==1:
sr=input("加密字符:")
for i in sr:
sr_.append(i)
for i in range(len(sr_)):
sr__=sr__+str(ord(sr_[i]))+'/'
elif yn==2:
sr2=''
sr3=""
sr=str(input("解密代码:"))
for i in sr:
sr2=sr2+i
if i=='/':
for i in sr2:
if i=='/':
break
sr3 = sr3 + i
sr_.append(sr3)
sr2=''
sr3=""
for i in range(len(sr_)):
sr__=sr__+str(chr(int(sr_[i])))
print(sr__)
\ 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