摘要:
import threadingimport timeimport requestsdef say_hi(name): time.sleep(2) print(name)def down_html(url1, name): res = requests.get(url1).content with 阅读全文
摘要:
import unittest# import HTMLTestRunner # 难看的测试报告from BeautifulReport import BeautifulReport # 漂亮的测试报告''' assertEqual(a, b) a == b assertNotEqual(a, b) 阅读全文
摘要:
# mysqldump -uroot -p123456 -A > nhy123.sqlimport osimport datetimeclass BakDb(object): def __init__(self, ip, username, password, port=3306, path='/t 阅读全文
摘要:
class Coon(object): def __init__(self, host, password, port): self.host = host self.password = password self.port = port class CoonMysql(Coon): def __ 阅读全文