Discuss / Python / 交作业

交作业

Topic source

JC辰01227

#1 Created at ... [Delete] [Delete and Lock User]

while和for两种玩意儿都试试: n = 0 while n <= 99: n=n+1 if n%2==1: continue else: print(n)

for x in range(101): x=x+1 if x % 2 == 0: print(x)


  • 1

Reply