两种循环: 1 for in 2 while #coding:utf-8 #/usr/bin/python """ 2018-11-03 dinghanhua 循环语句 """ '''for in''' #打印0-9 for i in range(10): print(i) #取出元组中不能被2整除的数据 turple = (1,13,33,54,8329) for i in turple: if(i%2 == 1): print(i) '''w…
一.关于版本的选择 Should i use Python 2 or Python 3 for my development activity?转载自Python官网 Short version: Python 2.x is legacy, Python 3.x is the present and future of the language Python 3.0 was released in 2008. The final 2.x version 2.7 release came out…