Commit 6b7adc8d by BellCodeEditor

save project

parent 20365dee
Showing with 10 additions and 6 deletions
t=["a","b","c","d"] # t=["a","b","c","d"]
for x in t: # for x in t:
print(x) # print(x)
for i in range(len(t)): # for i in range(len(t)):
print(t[i]) # print(t[i])
\ No newline at end of file
name = ["刘备","关羽", "张飞"]
name[:2] = ["关羽","刘备",]
print(name)
\ 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