Commit 0f456900 by BellCodeEditor

save project

parent 5ee937f6
import pygame
pygame.init()
scree=pygame.dispiay.dispiay.set_mode((660,480))
\ No newline at end of file
print(35-10)
\ No newline at end of file
print("*"*10)
\ No newline at end of file
text = "周末一起去欢乐谷吧"
li_text = list(text)
print(li_text)
\ No newline at end of file
list1=[0,1,2,3,4,5]
list2=[7,8,9,10]
list1.pop(4)
list1.remove(0)
list1.insert(3,4)
list1.append(6)
list1.extend(list2)
print(list1)
str1 = "abcdyfg"
num = 10
float1 = 1.0
list1=[1,2,3,]
a=list(str1)
print(a)
b=int(float1)
print(b)
c=str(num)
print(c)
\ No newline at end of file
a=int(input("周几去看展览?"))
if a%2==0:
print("YES")
else:
print("NO")
\ No newline at end of file
import random
message = "诺依,周末一起去看动漫展吧!"
length = len(message)
i = 0
while i <length:
element = message[i]
print(element)
i += 1
key = "abcdyhg使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
key_message = ""
message = input("请输入:")
for i in message:
str1 = i
str2 = random.choice(key)
sty3 = random.choice(key)
text = str1+str2+sty3
key_message = key_message + text
list_message = list(key_message)
list_message.insert(5,noise)
index = random.randint(0,len(key_message))
result_message = "".join(list_message)
print(result_message)
# 请使用索引的知识,取出message所有元素(不用遍历的方式)
\ 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