Commit 356c3985 by BellCodeEditor

save project

parent c7cb8754
Showing with 11 additions and 3 deletions
message = "诺依,周末一起去看动漫展吧!"
# 请对message进行遍历,取出所有元素
#for循环
for i in message:
print(i, end = " ")
\ No newline at end of file
print(i, end = " ")
# while循环
i = 0
length = len(message)
while i < length:
a = message[i]
print(a, end = " ")
i = i + 1
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment