随笔分类 -  python

摘要:在settings中配置 目录查看 引入jquery 阅读全文
posted @ 2018-09-14 21:33 巽逸 阅读(158) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/alex3714/articles/5188179.html (初阶) http://www.cnblogs.com/alex3714/articles/5213184.html(进阶) http://www.cnblogs.com/wupeiqi/ar 阅读全文
posted @ 2018-02-09 10:30 巽逸 阅读(123) 评论(0) 推荐(0)
摘要:常用模块 http://www.cnblogs.com/alex3714/articles/5161349.html ##########模块############ import 调用模块 单独调用模块的某个函数from time import sleep ##调用time模块的sleep函数(可 阅读全文
posted @ 2018-02-09 10:21 巽逸 阅读(182) 评论(0) 推荐(0)
摘要:一、python的作用域 #############python中的作用域分4种情况。L:local 局部作用域,即函数中定义的变量E:enclosing 镶嵌的父级函数的局部作用域,即包含此函数的上级函数的局部作用域,但不是全局的。G:globa 全局变量,就是模块级别定义的变量。B:built- 阅读全文
posted @ 2018-02-09 10:11 巽逸 阅读(190) 评论(0) 推荐(0)
摘要:基础运算符 http://www.cnblogs.com/alex3714/articles/5465198.html 身份运算符:is is not成员运算符:in not in ##in 判断元素是否存在该队列中 存在返回Turea= "abc"print("b" in a) num += 1 阅读全文
posted @ 2018-02-09 10:02 巽逸 阅读(1203) 评论(0) 推荐(0)
摘要:1,int #数字(整形) 2,bool #布尔值True与False 非0为真,非空为真 3,str #字符串 单双引号引起来的就是str a="123" print(type(a)) <class 'str'> ##字符串的格式化输出 format ##格式化输出的另一种方式 a="hello 阅读全文
posted @ 2018-02-09 09:53 巽逸 阅读(183) 评论(0) 推荐(0)