Commit ab50f88d by BellCodeEditor

auto save

parent e666c5e3
Showing with 27 additions and 0 deletions
# python Lv2-4
# 1.C,4个
# 2.B
# 3.if there is a print(num)the answer is 3 but
# if there is not there is no answer
# 4.B
# 二
# 1.break or exit.break 是退出循环,exit 执行下面的代码。exit 是退出所有的代码。
# 2.i=0
# while i<7:
# print(i)
# i+=1
# if i==6:
# break
# 3.打印出0-20内的奇数数字。
# 4.i=0
# while i<=10:
# if i%2 ==0:
# print(i)
# i+=1
# else:
# i+=1
# 5.?
name=['d','f','g','h']
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