上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 38 下一页
摘要: 1. python3中取消了Long类型 2. reload函数在python2中是内置函数,在python3中需要导入:from imp import reload 3. python3中没有unicode函数了。 阅读全文
posted @ 2019-05-24 17:22 kissrule 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 下载 https://github.com/gearman/gearmand/releases 解压,进入目录 sudo ./configure make sudo make install 问题1: configure: error: could not find gperf solution: 阅读全文
posted @ 2019-05-24 17:07 kissrule 阅读(179) 评论(0) 推荐(0) 编辑
摘要: iscsi configuration unable to save python error “ValueError: 'Implict and Explict' is not in list” The issue is caused by the fact that these paramete 阅读全文
posted @ 2019-05-24 12:09 kissrule 阅读(399) 评论(0) 推荐(0) 编辑
摘要: apt-get install python3-pip # Python3 ➜ ~ pip3 -V pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6) pip3 install flake8 执行目录的flake检测 python2. 阅读全文
posted @ 2019-05-24 10:13 kissrule 阅读(1855) 评论(0) 推荐(0) 编辑
摘要: 一、Dictionary 转为JSON将dict转为JSON,这里利用包jsonimport jsonaItem = {}aItem["id"] = "2203"aItem["title"] = "title"aItem["subTitle"] = "sub title"bItem = {}bIte 阅读全文
posted @ 2019-05-22 11:26 kissrule 阅读(24196) 评论(0) 推荐(1) 编辑
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-if __name__ == '__main__': list = ['html', 'js', 'css', 'python'] # 方法1 print '遍历列表方法1:' for i in list: pr 阅读全文
posted @ 2019-05-22 11:17 kissrule 阅读(21786) 评论(0) 推荐(0) 编辑
摘要: 问题 1 2019/05/20 15:27:14.574363 ctdb-eventd[26329]: 60.nfs: /etc/ctdb/nfs-linux-kernel-callout: line 143: /proc/sys/net/ipv4/tcp_tw_recycle: No such f 阅读全文
posted @ 2019-05-20 15:40 kissrule 阅读(284) 评论(0) 推荐(0) 编辑
摘要: + + + | Python | JSON | + + + | dict | object | + + + | list, tuple | array | + + + | str | string | + + + | int, float | number | + + + | True | true 阅读全文
posted @ 2019-05-15 12:11 kissrule 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 就作用域而言,Python与C有着很大的区别,在Python中并不是所有的语句块中都会产生作用域。只有当变量在Module(模块)、Class(类)、def(函数)中定义的时候,才会有作用域的概念。 在作用域中定义的变量,一般只在作用域中有效。 需要注意的是:在if-elif-else、for-el 阅读全文
posted @ 2019-05-15 12:09 kissrule 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 2019-05-13 14:43:27.017 47547 ERROR nova.compute.manager [req-3f1af0ed-c342-4cf3-8e76-6963053a5227 8b1ee1cd28ff40ef9bc830e71edced61 74288c12eb5f47aeab 阅读全文
posted @ 2019-05-13 16:46 kissrule 阅读(396) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 38 下一页