Commit 8bf16081 by BellCodeEditor

auto save

parent 15a4d56c
import random
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
e=""
# 请使用私钥key,对message进行加密
for i in message:
a=i
b=random.choice(key)
c=random.choice(key)
d=a+b+c
e=e+d
print(e)
l=[1,2,3,4]
a=sort(l,reverse=True)
print(a)
\ No newline at end of file
import turtle
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.penup()
turtle.goto(0,0)
turtle.pendown()
turtle.dot(20,"red")
turtle.penup()
turtle.goto(-40,0)
turtle.pendown()
turtle.dot(20,"red")
turtle.penup()
turtle.goto(40,0)
turtle.pendown()
turtle.dot(20,"red")
turtle.hideturtle()
turtle.done()
\ No newline at end of file
while True:
a=int(input())
if a<60:
print('不合格')
elif 60<=a<85:
print('良')
else:
print('有')
\ No newline at end of file
a=list(input())
print(a)
i=0
while i<len(a):
if a[i]>='0' and a[i]<='9':
a.pop(i)
i=i-1
i=i+1
print(a)
while True:
time=int(input())
if time<=2:
a=5
print(a)
else:
time_=time-2
a=time_*2
a=a+5
print(a)
print('输入半径')
r=float(input())
pi=3.14
c=2*r*pi
print('%.2f'%c)
s=r*r*pi
print('%.2f'%s)
\ No newline at end of file
'''
r5ertyuiytrertyuytrertytr
'''
a=6 #dyvvyrtfyrytytryryfyrtfrgfyrgfgy
b=3 #tfygrygrgfyrgyufgrygyfgrgfyrgfuj
s=a*b #qwertyuiopasdfghjklzxcvbnnmqqqqq
print("长方形面积为:"+str(s))
\ 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