摘要:
1 #! /usr/bin/env python3 2 # -*- coding:utf-8 -*- 3 4 # 使用while循环输入1 2 3 4 5 6 8 9 10 5 6 count = 1 7 8 while count < 11: 9 if count == 7: 10 print(" 阅读全文
摘要:
1 #! /usr/bin/env python3 2 # -*- coding:utf-8 -*- 3 4 # 输出1-100内所有的奇数 5 6 count = 1 7 8 while count < 101: 9 tmp = count % 2 10 if tmp == 0: 11 pass 阅读全文
摘要:
1 #! /usr/bin/env python3 2 # -*- coding:utf-8 -*- 3 4 # 输出1-100内所有的偶数 5 6 count = 1 7 8 while count < 101: 9 tmp = count % 2 10 if tmp == 1: 11 pass 阅读全文