From 6dcca100f577c8dd7a469206e0c57f5b8dfb4092 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 27 Mar 2021 15:11:54 +0800 Subject: [PATCH] save project --- diy3.py | 3 +-- fdd.py | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 fdd.py diff --git a/diy3.py b/diy3.py index c3d4bdd..26d8b04 100644 --- a/diy3.py +++ b/diy3.py @@ -2,5 +2,4 @@ message = "诺依,周末一起去看动漫展吧!" i = 0 while i<14: print(message[i]) - i+=1 -# 请使用索引的知识,取出message所有元素(不用遍历的方式) \ No newline at end of file + i+=1 \ No newline at end of file diff --git a/fdd.py b/fdd.py new file mode 100644 index 0000000..6cc101a --- /dev/null +++ b/fdd.py @@ -0,0 +1,5 @@ +import random +key = " 信息加密好酷呀!" +for i in range(7): + str = random.choice(key) + print(str) \ No newline at end of file -- libgit2 0.25.0