随笔分类 -  python

摘要:import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarn 阅读全文
posted @ 2018-06-06 17:30 testForever 阅读(188) 评论(0) 推荐(0)
摘要:1) both python2 and python3 installed on windows use python3:py 3 m pip install robotframework sshlibrary use python2:py 2 m pip install robotframewor 阅读全文
posted @ 2018-06-06 17:29 testForever 阅读(151) 评论(0) 推荐(0)
摘要:import unittest try: from mock import Mock, patch, ANY except ImportError: from unittest.mock import Mock, patch, ANY def test_mock(self): mock = Magi 阅读全文
posted @ 2018-06-06 17:28 testForever 阅读(144) 评论(0) 推荐(0)
摘要:1)download zip file: https://github.com/dlitz/pycrypto 2)extract file and install: py 3 m setup.py install PS:some error occurs,go to https://docs.pyt 阅读全文
posted @ 2018-06-06 17:12 testForever 阅读(155) 评论(0) 推荐(0)