Life is but a dream.

大栗出奇迹

自律

摘要: 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(" 阅读全文
posted @ 2021-09-16 17:43 大栗出奇迹 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-09-16 17:42 大栗出奇迹 阅读(2864) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2021-09-16 17:41 大栗出奇迹 阅读(5838) 评论(0) 推荐(0) 编辑