eagleye

上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 45 下一页

2024年4月6日

Python中的iif语句这样用(使用三元表达式替代if-else语句)

摘要: # 使用三元表达式替代if-else语句 scope = n.name.startswith("'") and '工作表' or '工作簿' # if n.name.startswith("'"): # scope = '工作表' # else: # scope = '工作簿' iif()函数这样用 阅读全文

posted @ 2024-04-06 08:33 GoGrid 阅读(354) 评论(0) 推荐(0)

2024年4月5日

xlwings模块工作表的activate()方法不可用时使用select()方法

摘要: 当激活工作表方法activate()不可以用时,可以试一试select()方法。 with xw.App(visible=False, add_book=False) as xlapp: wbook = xlapp.books.open(xl_file) wsheet = wbook.sheets[ 阅读全文

posted @ 2024-04-05 19:37 GoGrid 阅读(103) 评论(0) 推荐(0)

2024年4月2日

解决PyCharm打印程序代码时中文乱码问题

摘要: 问题:IDE编辑器中文正常显示,而使用打印机打印程序代码时中文显示乱码。 方法:一般是,打印时未能正确选择字体,原因是字体选择框中的中文字体显示的不是中文名称。 SimHei-黑体,SimSun-宋体,FangSong-仿宋,FangSong-GB2312-仿宋-GB2312, KaiTi-楷体,K 阅读全文

posted @ 2024-04-02 20:16 GoGrid 阅读(700) 评论(0) 推荐(0)

2024年4月1日

Python按照汉字拼音排序

摘要: # 按照汉字拼音排序 prov_list = ['河北省', '山东省', '广东省', '山西省', '河南省'] prov_list.sort(key=lambda x: x.encode('gbk')) print(prov_list)运行代码输出结果如下。['广东省','河北省','河南省' 阅读全文

posted @ 2024-04-01 13:59 GoGrid 阅读(347) 评论(0) 推荐(0)

2024年3月31日

Python获取指定目录(dest_dir)中的指定后缀(dest_suffix)的文件列表

摘要: # 获取指定目录(dest_dir)中的指定后缀(dest_suffix)的文件列表def get_files(dest_dir, dest_suffix='.xlsx'): list_files = [] for root, dirs, files in os.walk(dest_dir): fo 阅读全文

posted @ 2024-03-31 15:50 GoGrid 阅读(52) 评论(0) 推荐(0)

WPS Office这样查看更改文档信息

摘要: 文件->文档加密->属性。 阅读全文

posted @ 2024-03-31 15:21 GoGrid 阅读(41) 评论(0) 推荐(0)

2024年3月28日

PyCharm 2023.3.5 (Professional Edition)这样永久激活!!!简单!!!有效!!!

摘要: 请转到以下网址: https://blog.csdn.net/g89898guo/article/details/136834460 阅读全文

posted @ 2024-03-28 21:21 GoGrid 阅读(745) 评论(0) 推荐(0)

2024年3月24日

pandas之DataFrame的date数据类型正确的转换方法!!!

摘要: 错误:df['date'] = df['date'].astype('datetime64')正确: (1)df['date'] = df['date'].astype('datetime64[ns]') ns纳秒 (2)df['date'] = df['date'].astype('datetim 阅读全文

posted @ 2024-03-24 18:43 GoGrid 阅读(208) 评论(0) 推荐(0)

2024年3月23日

Python中pandas.read_excel()使用usecols参数会报错!!!!!!!!!

摘要: pandas.read_excel()使用usecols参数会报错!!!!!!!!! 解决方法:弃之不用。 阅读全文

posted @ 2024-03-23 22:19 GoGrid 阅读(154) 评论(0) 推荐(0)

2023年5月13日

解决Qt6.5 for Android应用程序(地图应用程序)不支持OpenSSL问题

摘要: 1.问题原因:版本问题 ssl_3: used for Qt 6.5.0+. ssl_1_1: for Qt Qt 5.12.5+, 5.13.1+, 5.14.0+, 5.15.0+, Qt 6.x.x up to 6.4.x 2.解决方法 (1)方法一:删除android_openssl目录,点 阅读全文

posted @ 2023-05-13 21:22 GoGrid 阅读(250) 评论(0) 推荐(0)

上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 45 下一页

导航