From ec03fa75726bf957d2ee28014e8317cb21040d8c Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 29 Oct 2022 19:26:43 +0800 Subject: [PATCH] auto save --- diy3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diy3.py b/diy3.py index 2f6369a..245637d 100644 --- a/diy3.py +++ b/diy3.py @@ -1,8 +1,8 @@ message = "诺依,周末一起去看动漫展吧!" a=len(message) -i=1 +i=0 while i < a: - e=a[i] + e=message[i] print(e) i+=1 # 请使用索引的知识,取出message所有元素(不用遍历的方式) \ No newline at end of file -- libgit2 0.25.0