Commit 34784b8a by BellCodeEditor

save project

parent 67c50bf8
Showing with 19 additions and 8 deletions
i = 5 # 行
j = 3 # 列
print(j,"*",i,"=",(j*i))# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式
dict_hero={'一':1,'二':2,'三':3,'四':4}
print(dict_hero)
\ No newline at end of file
bros=["刘备","关羽","张飞"]
bros[0]="关羽"
bros[1]="刘备"
print(bros)
\ No newline at end of file
import random
key="AI是傻逼abcdefg2bbbbbbbbbbbbbbbbbb"
message=input("请输入")
key_message=""
noise="我是——五星好市民"
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
text=str1+str2+str3
list_message=key_message+text
list_message=list(key_message)
index=random.randint(0,len(list_message))
list_message.insert(index,noise)
result_message="".join(list_message)
print(result_message)
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