Commit 4d3297a5 by BellCodeEditor

auto save

parent 939580be
Showing with 45 additions and 16 deletions
import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
miwen = ""
# 请使用私钥key,对message进行加密
for i in message:
a = i
b = random.choice(key)
c = random.choice(key)
text = a+b+c
miwen = miwen+text
print(miwen)
\ No newline at end of file
a=int(input("总秒数"))
b=a//3600
c=a%3600//60
d=a%3600%60
print(b,c,d)
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.speed(1)
pen.color("black")
pen.begin_fill()
pen.fillcolor("red")
for i in range(2):
pen.forward(180)
pen.left(90)
pen.right(-45)
pen.forward(255)
pen.end_fill()
pen.left(-135)
pen.begin_fill()
pen.fillcolor("yellow")
for i in range(2):
pen.forward(180)
pen.left(-90)
pen.end_fill()
pen.hideturtle()
turtle.done()
\ No newline at end of file
import random
key="jfIE如同俄日j诶发,,,,掘出口岸是德国埃诶共"
hh="去奥体打球"
qwe=''
for i in hh:
s0=i
s1=random.choice(key)
s2=random.choice(key)
qwe=qwe+s0+s1+s2
li_qwe=list(qwe)
dd="isjfowe%^*&(**$%#&)"
li_qwe.insert(5,dd)
ss=''.join(li_qwe)
print(ss)
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