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 12 else: 13 print(count) 14 count += 1
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 12 else: 13 print(count) 14 count += 1
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。