Commit 9fa3fbd5 by BellCodeEditor

save project

parent 1c7a81ef
Showing with 10 additions and 7 deletions
for i in range(1,10): students = ["悟空","小贝","八戒","波奇"]
students.remove("八戒")
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式\ print(students)
for j in range(1,i+1): students.append("诺依")
print(j,"*",i,"=",i*j,end=" ") print(students)
print() red = students[;2]
\ No newline at end of file blue = students[2:]
print(red)
print(blue)
\ 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