摘要: 在Python里文本数据是用str字符串类型来实现,用单引号'或者双引号" 括起来的任意文本。 比如'abc', "123abc", 注: '''triple quotes''' 以及 """three double-quotes""" 也是有效的 另外下面这种方式也是合法的,引号之间的空格会被忽略 阅读全文
posted @ 2017-04-10 01:03 Aaron_赵 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 在Python 3.x中增加了nonlocal关键字,关于变量的声明,引自官方文档: Assignment of an object to a single target is recursively defined as follows. If the target is an identifie 阅读全文
posted @ 2017-03-30 16:18 Aaron_赵 阅读(612) 评论(0) 推荐(0) 编辑