Commit 2065e2a1 by BellCodeEditor

auto save

parent 7f05ae95
Showing with 43 additions and 3 deletions
import random import random
# 私钥 # 私钥
key_message = "" key_message = ""
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" noise = "port:@#$%^&"
noise = "y45w56yw5"
# 要加密语句 # 要加密语句
message = "诺依,周末一起去看动漫展吧!" message = "诺依,周末一起去看动漫展吧!"
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
for i in message: for i in message:
key1 = i key1 = i
key2 = random.choice(key) key2 = random.choice(key)
...@@ -12,8 +12,11 @@ for i in message: ...@@ -12,8 +12,11 @@ for i in message:
text = key1+key2+key3 text = key1+key2+key3
key_message = key_message + text key_message = key_message + text
print(key_message)# 请使用私钥key,对message进行加密 print(key_message)# 请使用私钥key,对message进行加密
list_message = list(key_message) list_message.insert(index,noise)
key_message.insert(5,noise) key_message.insert(5,noise)
result_message = "".join(list_message) result_message = "".join(list_message)
print(ruselt_messsagr) print(ruselt_messsagr)
import turtle
pen=turtle.Pen()
def ORing(a,b,color):
pen.pencolor(color)
pen.pensize(5)
pen.penup()
pen.goto(a,b)
pen.pendown()
pen.circle(40)
ORing(-100,50,"blue")
ORing(-15,50,"black")
ORing(70,50,"red")
ORing(-60,-10,"yellow")
ORing(25,-10,"green")
pen.hideturtle()
turtle.done()
This source diff could not be displayed because it is too large. You can view the blob instead.
count = 0
while True:
print("count的值为:"+str(count))
if count == 5:
continue
if count == 10:
break
count += 1
print("程序结束")
\ 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