From f60c98d8c1239898e298bc41c82c78595d8ceb02 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 24 Jul 2022 14:30:37 +0800 Subject: [PATCH] save project --- diy3.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/diy3.py b/diy3.py index e5611ac..314fafa 100644 --- a/diy3.py +++ b/diy3.py @@ -1,3 +1,11 @@ message = "诺依,周末一起去看动漫展吧!" +length = len(message) +i=0 +while i < length: + element=message[i] + print(element) + i +=1 + + # 请使用索引的知识,取出message所有元素(不用遍历的方式) -- libgit2 0.25.0