上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 30 下一页
摘要: 需要安装pywin32模块,pip install pywin32 ##pip install pywin32 import win32api,win32con ##提醒OK消息框 win32api.MessageBox(0, "这是一个测试提醒OK消息框", "提醒",win32con.MB_OK 阅读全文
posted @ 2021-05-26 10:55 Microtiger 阅读(1839) 评论(0) 推荐(0)
摘要: my.cnf socket = /alidata3/mysql-tmp/mysql.sock php.ini mysqli.default_socket =/alidata3/mysql-tmp/mysql.sock mysql.default_socket =/alidata3/mysql-tmp 阅读全文
posted @ 2021-04-20 17:00 Microtiger 阅读(385) 评论(0) 推荐(0)
摘要: Scrapy Nutch pyspider urllib urllib2 requests Beautiful Soup==bs4 是一个东西 pandas numpy 阅读全文
posted @ 2021-03-27 13:45 Microtiger 阅读(83) 评论(0) 推荐(0)
摘要: Python 数组(列表): thislist = ["apple", "banana", "cherry"] Python 元组: thistuple = ("apple", "banana", "cherry") Python 集合: thisset = {"apple", "banana", 阅读全文
posted @ 2021-02-27 14:08 Microtiger 阅读(370) 评论(0) 推荐(0)
摘要: import sys if len(sys.argv)<2: print('1') else: param=sys.argv[1] print(param) sysargv.exe start 输出结果 start 阅读全文
posted @ 2021-01-27 16:21 Microtiger 阅读(1141) 评论(0) 推荐(0)
摘要: 找到php-fpm文件 去掉request_slowlog_timeout前面的分号,并设置时间。如:request_slowlog_timeout=5表示超过5秒的 去掉slowlog前面的分号,并设置log路径。如slowlog=/usr/local/php71/log 重启PHP 阅读全文
posted @ 2020-11-30 15:25 Microtiger 阅读(190) 评论(0) 推荐(0)
摘要: https://www.runoob.com/python/python-reg-expressions.html re.match函数 re.match 尝试从字符串的起始位置匹配一个模式,如果不是起始位置匹配成功的话,match()就返回none。 import re print(re.matc 阅读全文
posted @ 2020-11-14 15:06 Microtiger 阅读(145) 评论(0) 推荐(0)
摘要: 方法1:使用r.content,得到的是bytes型,再转为str url='http://music.baidu.com' r = requests.get(url) html=r.content html_doc=str(html,'utf-8') #html_doc=html.decode(" 阅读全文
posted @ 2020-11-09 13:43 Microtiger 阅读(381) 评论(0) 推荐(0)
摘要: from selenium import webdriver driver=webdriver.Chrome() driver.set_page_load_timeout(5) driver.set_script_timeout(5)#这两种设置都进行才有效 try: d.get(s) except 阅读全文
posted @ 2020-09-27 10:12 Microtiger 阅读(2724) 评论(0) 推荐(0)
摘要: 1.安装谷歌浏览器,打开谷歌浏览器安装目录查看对应的版本号 查看浏览器的版本, 83.0.4103.116 2.到谷歌网站下载对应版本的 chromedriver.exe 驱动 http://chromedriver.storage.googleapis.com/index.html 3.把pyth 阅读全文
posted @ 2020-09-20 15:53 Microtiger 阅读(1148) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 30 下一页