From f85b3ea28bfc44c059e5e4ec8beee7a4a32b33d7 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Thu, 18 Apr 2024 19:30:48 +0800 Subject: [PATCH] auto save --- str.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 str.py diff --git a/str.py b/str.py new file mode 100644 index 0000000..d739d4c --- /dev/null +++ b/str.py @@ -0,0 +1,15 @@ +# #diy2 +# message = "诺依,周末一起去看动漫展吧!" + +# # 请对message进行遍历,取出所有元素 + +# for i in message: +# print(i) + +# #diy3 +# message = "诺依,周末一起去看动漫展吧!" + +# # 请使用索引的知识,取出message所有元素(不用遍历的方式) +# i=0 +# for i in range(len(message)): +# print(message[i]) \ No newline at end of file -- libgit2 0.25.0