随笔分类 - python
摘要:将列表转为字符串 将字典转化为字符串 将字符串转为列表 将字符串转为字典 字符串转字典 输出 将字典存入文件中,再从文件读取出来 参考: http://www.cnblogs.com/bainianminguo/p/6676067.html
        阅读全文
            
摘要:安装 然后重新编译安装python3: 参考: https://blog.csdn.net/u012063703/article/details/50460107 https://www.cnblogs.com/xiaoguozi0218/articles/8304005.html https://
        阅读全文
            
摘要:在Python2.x中, iteritems() 用于返回本身字典列表操作后的迭代 Python 3.x 里面, iteritems() 方法已经废除了,而 items() 得到的结果是和 2.x 里面 viewitems() 一致的。在3.x 里 用 items()替换iteritems() ,可
        阅读全文
            
摘要:使用yum安装python-pip,但是报错,说没有可用的包 安装epel源 然后再安装 使用时输入pip2。 参考: https://www.cnblogs.com/zd520pyx1314/p/7935671.html
        阅读全文
            
摘要:https://pip.pypa.io/en/stable/installing/
        阅读全文
            
摘要:centos7安装python3.7.2后,运行 会报错 解决方法: 在./configure过程中,如果没有加上–with-ssl参数时,默认安装的软件涉及到ssl的功能不可用,刚好pip3过程需要ssl模块,而由于没有指定,所以该功能不可用。 查看openssl安装包,发现缺少openssl-d
        阅读全文
            
摘要:下载python3.7.2源码 下载完后对压缩包解压缩 进入解压缩完后的文件夹: 配置(需要加上--with-ssl,不然pip不能安装相关函数库,python3.7.2 pip 出现locations that require TLS/SSL异常处理方法) 编译 安装 遇到以下报错: zipimp
        阅读全文
            
摘要:一般位于3.7以上版本编译安装时出错 缺少依赖包libffi-devel 在安装3.7以上版本时,需要一个新的libffi-devel包做依赖 解决方法:
        阅读全文
            
摘要:https://www.python.org/ftp/python/
        阅读全文
            
摘要:import subprocess p_restart=subprocess.Popen(['/bin/sh','/etc/init.d/xxx_service','reboot'])
        阅读全文
            
摘要:mongoDB有不同的认证机制,3.0版本以后采用的是'MONGODB-CR', 之前的版本采用的是'MONGODB-CR'。 所以,以我的版本情况,显然应该用'SCRAM-SHA-1'
        阅读全文
            
摘要:参考: https://www.jianshu.com/p/7437666f93e5 https://blog.csdn.net/zaishijizhidian/article/details/80075800 https://www.cnblogs.com/dplearning/p/5127869
        阅读全文
            
摘要:1、String 操作 redis中的String在在内存中按照一个name对应一个value来存储 set() mset() get(name) 获取值 mget(keys, *args) getset(name, value) getrange(key, start, end) setrange
        阅读全文
            
摘要:redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hash(哈希类型)。这些数据类型都支持push/pop、add/remove及取交
        阅读全文
            
摘要:import requests from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium import webdriver from selenium.webdriver.chrome.options import Option...
        阅读全文
            
摘要:headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'zh-CN,zh;q=0.9', ...
        阅读全文
            
                    
                
浙公网安备 33010602011771号