会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
哪里多
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
11
下一页
2021年4月22日
python 打包exe 命令及去除 cmd框
摘要: 1.下载python 2.安装python,安装完成后在系统环境变量中配置python安装路径和E:\python\Scripts路径。 3.使用命令安装库 pip install pyinstaller 4.进入你的xx.py的文件中使用该命令打包 pyinstaller -F xx.py -w
阅读全文
posted @ 2021-04-22 10:47 拷贝达人
阅读(565)
评论(0)
推荐(0)
2021年4月14日
mysql命令行修改密码
摘要: 1.以管理员身份打开cmd窗口2.进入安装mysql的bin目录、3.命令net start mysql开启服务4.mysql -u root -p 管理员登陆5.输入旧密码后进入数据库6.输入ALTER USER 'root'@'localhost' IDENTIFIED BY '新密码';
阅读全文
posted @ 2021-04-14 16:25 拷贝达人
阅读(169)
评论(0)
推荐(0)
2021年4月9日
html文件转换成excel
摘要: path_html = str(path_f) # 原来的html文件 file_name = str(os.path.basename(path_f)).split('.')[0] new_excel_path = os.getcwd() + '\\' + file_name io = str(n
阅读全文
posted @ 2021-04-09 10:40 拷贝达人
阅读(1513)
评论(0)
推荐(0)
清空网页输入框无法输入的问题
摘要: self.driver.execute_script("document.getElementById('date_tradebegindate_62180').removeAttribute('readonly');") log.info("清空输入框无法输入的属性") # 等待2秒 time.s
阅读全文
posted @ 2021-04-09 10:33 拷贝达人
阅读(104)
评论(0)
推荐(0)
2021年4月8日
padnas 读取html
摘要: import pandas as pd file_path = r'D:\test.html' html_data = pd.read_html(file_path)[0] values = html_data.values.tolist()
阅读全文
posted @ 2021-04-08 12:04 拷贝达人
阅读(69)
评论(0)
推荐(0)
2021年2月25日
根据偏移量获取时间
摘要: import datetime def get_month_zone(before_day=1): today = datetime.date.today() day = today.day year = today.year month = today.month if day > before_
阅读全文
posted @ 2021-02-25 10:21 拷贝达人
阅读(132)
评论(0)
推荐(0)
浏览器页面后台全屏截图
摘要: from selenium import webdriver from selenium.webdriver.chrome.options import Options import os import time def get_image(url, pic_name): # chromedrive
阅读全文
posted @ 2021-02-25 09:58 拷贝达人
阅读(369)
评论(0)
推荐(0)
2021年2月3日
python 获取下月时间
摘要: import datetime import calendar def get_next_month(): # 获取当前日期 now_time = datetime.datetime.now() # 获取当前时间的星期数和月数 week, days_num = calendar.monthrange
阅读全文
posted @ 2021-02-03 11:01 拷贝达人
阅读(817)
评论(0)
推荐(0)
2021年1月18日
读取文件里的文件,按修改时间从小到大(时间戳)排序,合并到一个Excel
摘要: def merge_excel_data(folder_path, result_file_path, file_name_list): """ :param folder_path: 文件夹路径 :param result_file_path: 汇总文件绝对路径 :param file_name_
阅读全文
posted @ 2021-01-18 18:29 拷贝达人
阅读(399)
评论(0)
推荐(0)
获取T-5天和T-1天日期
摘要: def get_target_date(): start_date = str(date.today() - timedelta(45)) end_date = str(date.today() - timedelta(15)) return start_date, end_date
阅读全文
posted @ 2021-01-18 11:59 拷贝达人
阅读(353)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
11
下一页
公告