From 6ce51d663168f083c5e619c26fafec5168298a54 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Mon, 25 Jul 2022 16:01:11 +0800 Subject: [PATCH] auto save --- diy3.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/diy3.py b/diy3.py index 83eacf4..93dd125 100644 --- a/diy3.py +++ b/diy3.py @@ -1,3 +1,11 @@ message = "诺依,周末一起去看动漫展吧!" -# 请使用索引的知识,取出message所有元素(不用遍历的方式) \ No newline at end of file +# 请使用索引的知识,取出message所有元素(不用遍历的方式) +for i in range(len(message)): + print(message[i]) + +for i in message: + print(i) + +for i in range(10): + print(i) -- libgit2 0.25.0