[While] cycle

# coding:utf-8

# Now print digital from 1-10

# 1 code similarity than 80%, print
# 2. The difference is that you want to print something later, each time adding 1
# 3. total of only 10

# print'1'
# .....
#print '10'

 # 1 = a
 # Print (whether)

 # 1 = a +
 # Print (whether)

 # 1 = a +
 # Print (whether)

 # 1 = a +
 # Print (whether)




a = 1
while num <= 10:
	print (whether)
	a = 1 +

 

Guess you like

Origin www.cnblogs.com/lsswudi/p/11139506.html