
python
CodeStarr
Make good use of your time
展开
-
python基础教程笔记2
抽象更加抽象异常魔法方法属性和迭代器自带电池文件和流6.抽象collable判断函数是否可调用>>> import math>>> x=1>>> y=math.sqrt>>> callable(x)False>>> callable(y)True>>> def square(x): ... 'x*x' #在函原创 2018-01-26 10:27:22 · 208 阅读 · 0 评论 -
python基础教程笔记1
python基础教程基础列表和元组字符串字典条件循环和其它语句python基础教程1.基础1/2==01.0/2==0.51.0//2==0.02**3==8cmath.sqrt(-1)==1jrepr("hello")=="'hello'"str("hello")=="hello"长字符串'''this is a long原创 2018-01-24 14:51:19 · 976 阅读 · 0 评论