Commit 43af92e4 by BellCodeEditor

save project

parent 394e88b3
Pipeline #6364 failed in 0 seconds
Showing with 12 additions and 8 deletions
students=["悟空","小贝","八戒","波奇"] students=["悟空","小贝","八戒","波奇"]
students.pop(2) # students.pop(2)
print(students) # print(students)
students.insert(2,"诺伊") # students.insert(2,"诺伊")
print(students) # print(students)
red=students[0:2] # red=students[0:2]
blue=students[2:] # blue=students[2:]
print(red,blue) # print(red,blue)
\ No newline at end of file
a=input("请输入文字:")
for i in a:
print(i)
\ 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