Commit d9d97f89 by BellCodeEditor

save project

parent 2352fa02
Showing with 8 additions and 17 deletions
import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
key_message=""
# 请使用私钥key,对message进行加密
for i in message:
st1=random.choice(key)
st2=random.choice(key)
key_message=key_message+i+st1+st2
print(key_message)
dict_hero={'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6,}
j=input("你要买什么?")
if j in dict:
print("你要买的"+j+str(dict[j])+'元')
else:
print("没有这个商品")
\ No newline at end of file
++ "b/\345\220\210\345\220\214\345\267\262\347\273\217\345\222\214\344\273\226\345\246\202\347\201\253\345\246\202\350\215\274"
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