diff --git a/diy2.py b/diy2.py index a8d863c..c9631d2 100644 --- a/diy2.py +++ b/diy2.py @@ -1,6 +1,10 @@ -message = "诺依,周末一起去看动漫展吧!" -a=0 -# 请对message进行遍历,取出所有元 -while a<14: - print(message[a]) - a+=1 \ No newline at end of file +import random +text="" +key="哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈" +hh="我要写作业" +for i in hh: + str1=i + str2=random.choice(key) + str3=random.choice(key) + text=text+str1+str2+str3 +print(text) \ No newline at end of file