摘要: #1、使用while循环输出1 2 3 4 5 6 8 9 10 # s=0 # while s<10: # s+=1 # if s==7: # continue # print(s) # for i in range(1,11): # if i==7: # continue # print(i) # i +... 阅读全文
posted @ 2017-06-07 18:45 Operater 阅读(228) 评论(0) 推荐(0)
摘要: # 1:编写for循环,利用索引遍历出每一个字符 # msg = 'hello egon 666' # for i in range(len(msg)): # print(i,msg[i]) # 2:编写while循环,利用索引遍历出每一个字符 # msg = 'hello egon 666' # i=0 # while i>: 1 # 总工资是: 120000.0 # # 1 # 查询... 阅读全文
posted @ 2017-06-07 18:42 Operater 阅读(205) 评论(0) 推荐(0)