03 2017 档案

摘要:前往官网下载对应的windows版本 "官网" 下载后进入安装目录,启动命令行窗口,输入: 则nginx服务器已经启动。 打开浏览器,在标题栏输入: 或 则可以看到nginx启动成功的信息。 Welcome to nginx! If you see this page, the nginx web 阅读全文
posted @ 2017-03-18 22:41 Brad1994 阅读(614) 评论(0) 推荐(0)
摘要:引言 对于做web开发的人来说,json文本必须要熟知与熟练使用的。大部分网站的API接口调用返回的数据,就是json格式的。如果看json对象所包含的内容,相信对熟悉Python的人开说,很快就能把json的数据类型跟Python的数据类型对应上。 那么,Python的标准模块包json,又有什么 阅读全文
posted @ 2017-03-12 23:59 Brad1994 阅读(903) 评论(0) 推荐(0)
摘要:用法 1. 字符串常量: import string print(string.ascii_lowercase) print(string.ascii_uppercase) print(string.ascii_letters) print(string.digits) print(string.h 阅读全文
posted @ 2017-03-11 23:35 Brad1994 阅读(1305) 评论(0) 推荐(0)
摘要:nonlocal 首先,要明确 nonlocal 关键字是定义在闭包里面的。请看以下代码: x = 0 def outer(): x = 1 def inner(): x = 2 print("inner:", x) inner() print("outer:", x) outer() print( 阅读全文
posted @ 2017-03-10 21:54 Brad1994 阅读(5937) 评论(0) 推荐(3)
摘要:引用 Python是动态数据类型的语言,故在对变量进行赋值时是不用制定变量类型的。 或者说,你可以把变量赋值的过程,当作是贴一个标签,去引用该数据。 看下面的例子: In [54]: a=4 In [55]: b=a In [56]: id(a) Out[56]: 1652425264 In [57 阅读全文
posted @ 2017-03-10 21:34 Brad1994 阅读(474) 评论(0) 推荐(0)
摘要:Note Today, another day debuging with my teammates, and I just tried to make complete comprehension on this framework, althought the project is urgent 阅读全文
posted @ 2017-03-09 23:51 Brad1994 阅读(322) 评论(0) 推荐(0)
摘要:1. Octal expression: like Or use a built in function to transfer a int into a octal str. 2. Hex expression: 3. For a dictionary, if use its method cop 阅读全文
posted @ 2017-03-07 15:01 Brad1994 阅读(154) 评论(0) 推荐(0)