
Python
超级大neo
这个作者很懒,什么都没留下…
展开
-
win10 pip install ujson failed
错误日志C:\Users\86182>pip install --no-cache-dir ujsonLooking in indexes: https://pypi.tuna.tsinghua.edu.cn/simpleCollecting ujson Downloading https://pypi.tuna.tsinghua.edu.cn/packages/86/0a/80d87aa4ee79980bddabef13cb7d95de330f85355cf08dfdaf874889b原创 2021-03-24 11:15:12 · 2857 阅读 · 0 评论 -
confluence查看个人贡献率或者wiki 数据 查询接口 保存备用
import requestsurl = "https://{xxxxxxxx}/gateway/api/xpsearch-aggregator/search/v2/advanced"payload="{\"query\":\"\",\"cloudId\":\"4aadfaa9-6feb-4dc1-9cda-75ed9659e975\",\"scope\":\"confluence.page,blogpost,attachment,space\",\"sessionAttributes\":{\".原创 2020-12-23 14:37:46 · 1213 阅读 · 0 评论 -
python socket connect 错误类型
https://github.com/python/cpython/blob/3.8/Lib/socket.pyerrorTab[8] = "Insufficient memory available." errorTab[87] = "One or more parameters are invalid." errorTab[995] = "Overlapped operation aborted." errorTab[996] = "Overlapped I/O event obj.原创 2020-07-06 19:37:30 · 1356 阅读 · 0 评论 -
error: Microsoft Visual C++ 14.0 is required
error: Microsoft Visual C++ 14.0 is required解决办法:The Solution is: Go toBuild Tools for Visual Studio 2017 Select free download under Visual Studio Community 2017. This will download t...转载 2020-03-20 17:27:24 · 234 阅读 · 0 评论 -
详解python的几种标准输出重定向方式
详解python的几种标准输出重定向方式这篇文章是基于Python2.7版本,介绍常见的几种标准输出(stdout)重定向方式。显然,这些方式也适用于标准错误重定向。学习python的小伙伴们可以参考借鉴。一. 背景在Python中,文件对象sys.stdin、sys.stdout和sys.stderr分别对应解释器的标准输入、标准输原创 2018-03-11 00:31:18 · 8905 阅读 · 0 评论 -
解决self.buf += ''.join(self.buflist) UnicodeDecodeError: 'utf8' 问题
问题return self.outputBuffer.getvalue() File "C:\Python27\lib\StringIO.py", line 276, in getvalue self.buf += ''.join(self.buflist)UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in positi原创 2018-04-14 11:57:30 · 714 阅读 · 0 评论 -
interview_python
转自:https://github.com/taizilongxu/interview_python 担心github抽风,存一下 Table of ContentsPython语言特性 1 Python的函数参数传递2 Python中的元类(metaclass)3 @staticmethod和@classmethod4 类变量和实例变量5 Python自省6 字典推导式7 Py转载 2018-04-17 17:28:09 · 759 阅读 · 0 评论 -
python 相对路径文件的操作
python项目中,如果pyton代码需要访问某个外部文件,该文件位于代码文件的某个相对路径位置,我们可以在代码中使用相对路径来访问该文件。 比如图中的代码结构: sample.py文件中,如果要访问配置文件server.ini文件,就可以用 “../conf/server.ini”来进行访问。但是经常的问题是,该python文件又被别的目录的python文件import引用, 此时相对路径就会出...原创 2018-04-13 17:39:22 · 26008 阅读 · 1 评论 -
pip [SSL: CERTIFICATE_VERIFY_FAILED]
问题:Could not fetch URL https://pypi.org/simple/pypi-org/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pypi原创 2018-05-10 09:35:17 · 1133 阅读 · 0 评论 -
Selenium 问题IOError: [Errno 2] No such file or directory: 'nul'
问题: selenium +pythpon+chromedriver+chrome 报错,提示IOError: [Errno 2] No such file or directory: ‘nul’详细信息: 系统:win10 64位 Chrome版本 65.0.3325.146(正式版本) (64 位) ChromeDriver 2.35.528161 python 版本-2.7....原创 2018-03-09 23:24:06 · 9524 阅读 · 9 评论 -
Python 模块功能paramiko SSH 远程执行及远程下载(可以使用)
Python 模块功能paramiko SSH 远程执行及远程下载原文地址:http://www.cnblogs.com/yexiaochong/p/5459489.html模块 paramiko paramiko是一个用于做远程控制的模块,使用该模块可以对远程服务器进行命令或文件操作,值得一说的是,fabric和ansible内部的远程管理就是使用的paramik转载 2016-08-23 10:56:34 · 1333 阅读 · 0 评论 -
关于Python的面试题 (github)
在git上看到一个非常好的文章,先fork,然后果断copy下来自己留着,也给大家分享一下。地址https://github.com/taizilongxu/interview_pythonPython语言特性1 Python的函数参数传递2 Python中的元类(metaclass)3 @staticmethod和@classmethod4转载 2016-11-15 16:27:41 · 2783 阅读 · 0 评论 -
selenium之 chromedriver与chrome版本映射表(更新至v2.27)
看到网上基本没有最新的chromedriver与chrome的对应关系表,便兴起整理了一份如下,希望对大家有用:chromedriver版本支持的Chrome版本v2.27v54-56v2.26v53-55v2.25v53-55v2.24v52-54v转载 2017-02-16 14:47:43 · 1852 阅读 · 0 评论 -
解决import _tkinter时提示ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> import _tkinterTraceback原创 2017-03-20 22:08:15 · 7291 阅读 · 1 评论 -
解决问题:"Pyperclip could not find a copy/paste mechanism for your system. "
IntroductionPurposeThe purpose of Pyperclip is to provide a cross-platform Python module for copying and pasting text to the clipboard.To copy text to the clipboard, pass a string to pypercl转载 2017-04-13 10:04:45 · 7115 阅读 · 5 评论 -
测试开发基本上的学历路线
已知漏掉的是CI,以后再写吧,正好自己做个总结,拖了半年了. 准备再拖到这个月底.原创 2017-07-07 16:02:50 · 517 阅读 · 0 评论 -
如何修改robotFramework-ride 背景色
changing white colour theme to dark colour theme of Ride.pre installed pygments python module. (e.g. pip install pygments)Modify two files' codes belowC:\Users\ahnlab_test8.1\AppData\Ro原创 2017-03-13 18:06:28 · 4592 阅读 · 0 评论 -
被解放的姜戈01 初试天涯
Django是Python下的一款网络服务器框架。Python下有许多款不同的框架。Django是重量级选手中最有代表性的一位。许多成功的网站和APP都基于Django。虽然Django之于Python,达不到Rail之于Ruby的一统江湖的地位,但Django无疑也是Python在网络应用方面的一位主将。向昆汀的致敬,“被解放的姜戈”Django意外的和昆汀的电影重名。这原创 2017-07-08 16:36:00 · 622 阅读 · 0 评论 -
UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-14
pip,windows,安装RF的appium库,C:\Users\xu> pip install -U robotframework-appiumlibraryself.wrapped.write(text[start:end])UnicodeEncodeError: 'ascii' codec can't encode characters in position 9-14: or原创 2016-08-03 17:04:25 · 2368 阅读 · 0 评论