# 控制语句
# a = 'hhjdusmsn'
#
# for i in a:
# if i != 'm':
# print('不是m{0}'.format(i),end=' --- ')
# else:
# print('是m',i)
# 循环 while-else
# a = 'hhjdusmsn'
# i = 0
# while i < 10:
# print(i)
# i +=1
# else:
# print('当前i的值已经是{0}'.format(i))
#循环 for-else
# a = 'hhjdusmsn'
# i = 0
# for i in range(10,20):
# for j in range(2,i):
# if i % j==0:
# k = i/j
# print(k)
# break
# else:
# print(i)
#break
# a = 'hhjdusmsn'
#
# for i in a:
# if i=='m':
# print(" mmm::{0}".format(i))
# break
# else:
# print(i,end='')
#continue
# a = 'hhjdusmsn'
#
# for i in a:
# if i=='m':
# print(" mmm::{0}".format(i))
# continue
# else:
# print(i,end='')
网友评论