Commit 61fad4a2 by BellCodeEditor

save project

parent 77800e12
Showing with 19 additions and 14 deletions
import random import random
sb=input("请出 石头/剪刀/布:")
# 私钥 print("玩家出拳:"+sb)
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!" tmd=["石头","剪刀","布"]
# 要加密语句 bigsb=random.choice(tmd)
message = "诺依,周末一起去看动漫展吧!" print("人机出拳:"+bigsb)
key_message="" \ No newline at end of file
# 请使用私钥key,对message进行加密
for i in message :
a = i
b = random.choice(key)
c = random.choice(key)
key_message += a + b + c
print(key_message)
\ No newline at end of file
N = int(input())
b = []
for i in range(1,N+1) :
b.append(str(i*i))
s = ','.join(b)
print(s)
N = int(input())
M = int(input())
if N[6:14] == M[6:14] :
print('0')
elif N[6:14] > M[6:14] or N[6:14] < M[6:14]:
print('1')
\ 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