
Python
Python
-Love-Coding-
ACL/NAACL/EMNLP/COLING审稿人,github.com/guotong1988
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python将llama-factory eval多轮对话的结果,解析为json格式
cursor写的,比我写的都好。原创 2025-07-23 16:05:19 · 80 阅读 · 0 评论 -
Python 用 str.removeprefix,不要用str.lstrip,用lstrip会有很多误删
【代码】Python 用 str.removeprefix,不要用str.lstrip,用lstrip会有很多误删。原创 2025-06-30 11:37:54 · 101 阅读 · 0 评论 -
json.dump数据堆叠,格式自动format
【代码】json.dump数据堆叠,格式自动format。原创 2025-06-27 14:11:42 · 118 阅读 · 0 评论 -
【python】regex/正则,保留英文/空格/中文/数字
【代码】【python】regex/正则,保留英文/空格/中文/数字。原创 2025-06-10 16:07:42 · 124 阅读 · 0 评论 -
python报错,A module that was compiled using NumPy 1.x cannot be run in NumPy 2.x as it may crash
解决方法,安装1.x版本的numpy。原创 2025-05-11 14:23:21 · 623 阅读 · 0 评论 -
python报错,ValueError: numpy.dtype size changed, may indicate binary incompatibility.
【代码】python报错,ValueError: numpy.dtype size changed, may indicate binary incompatibility.原创 2025-05-11 12:15:01 · 315 阅读 · 0 评论 -
python 正则,提取括号中的内容
'(测试内容)'原创 2025-05-09 15:14:18 · 152 阅读 · 0 评论 -
ubuntu运行pycharm.sh一直显示“正在加载”
下错pycharm了,不应该下载ARM64那个版本的。原创 2025-02-09 17:13:11 · 174 阅读 · 0 评论 -
ubuntu上pycharm.sh启动时报java版本错误(version of the Java Runtime only recognizes...)
以pycharm2024.3.2为例,下载jdk-17.0.2。原创 2025-02-09 12:02:09 · 183 阅读 · 0 评论 -
ubuntu上conda安装Genesis物理引擎
【代码】ubuntu上conda安装Genesis物理引擎。原创 2025-02-09 10:24:25 · 161 阅读 · 0 评论 -
ubuntu上安装conda
【代码】ubuntu 安装 conda。原创 2025-02-08 21:53:16 · 110 阅读 · 0 评论 -
Mac笔记本conda安装Genesis物理引擎
【代码】conda安装Genesis物理引擎。原创 2025-02-05 17:34:59 · 165 阅读 · 0 评论 -
在Mac上安装conda
【代码】在Mac上安装conda。原创 2025-02-05 17:31:46 · 357 阅读 · 0 评论 -
python项目自动检查版本匹配
【代码】python项目自动检查版本匹配。原创 2025-01-29 12:02:34 · 192 阅读 · 0 评论 -
python socket通信
【代码】python socket通信。原创 2024-10-21 10:51:36 · 163 阅读 · 0 评论 -
Python Flask 实现图片上传页面
【代码】python Flask 实现图片上传页面。原创 2024-09-06 09:25:05 · 831 阅读 · 0 评论 -
python 曲线拟合
【代码】python 曲线拟合。原创 2024-07-31 10:55:55 · 237 阅读 · 0 评论 -
python,从n个不同元素中取出r个元素的所有不同组合
即 nCr,which represents “n choose r”原创 2024-07-22 09:30:11 · 162 阅读 · 0 评论 -
python,http访问页面,获得页面真实信息
点进去打开新的页面,再复制新页面里的http链接。在chrome浏览器,访问页面,Mac系统按。原创 2024-04-03 10:40:14 · 165 阅读 · 0 评论 -
Mac安装python,还是推荐走pyenv,源码make install太费事:比如报错:No module named ‘_lzma‘
安装python3.8。原创 2024-03-03 19:58:14 · 488 阅读 · 0 评论 -
python 实现一个交互式终端
【代码】python 实现一个交互式终端。原创 2023-11-30 15:04:28 · 325 阅读 · 0 评论 -
python 读文件,跳过有问题的那行
【代码】python 读文件,跳过有问题的那行。原创 2023-08-31 12:01:15 · 430 阅读 · 0 评论 -
Linux源码安装python3.6.8
不用管openssl的事,( https://blog.csdn.net/guotong1988/article/details/129047791 )用tensorflow是OK的。原创 2023-06-30 10:41:03 · 189 阅读 · 0 评论 -
python,continue 之后不要加 index+=1 的计数啊
下面代码想做到,如果"ABC"没在。原创 2023-06-20 11:32:03 · 182 阅读 · 0 评论 -
python numpy 实现cosine相似度
【代码】python numpy 实现cosine相似度。原创 2023-05-26 10:02:44 · 1960 阅读 · 0 评论 -
pyspark报错,An error occurred while calling o123.saveAsTable
内存溢出,OOM了。原创 2023-05-12 15:42:32 · 662 阅读 · 0 评论 -
pyspark 读tsv文件
【代码】pyspark 读tsv文件。原创 2023-04-27 11:36:20 · 157 阅读 · 0 评论 -
Linux源码安装python3.8,解决 No module named ‘_ssl‘ 问题
从 https://www.openssl.org/source/ 下载openssl-1.1.1t.tar.gz。原创 2023-02-15 17:49:30 · 204 阅读 · 0 评论 -
python3编译报错,sh: build/temp.linux-x86_64-3.8/multiarch: Permission denied
python3.8编译报错原创 2023-02-15 16:23:59 · 590 阅读 · 0 评论 -
pip3 install 报错 protobuf requires Python ‘>=3.7‘ but the running Python is 3.6.8
安装时指定protobuf版本。原创 2023-01-29 09:15:00 · 1722 阅读 · 0 评论 -
python,image和string的相互转换
python3原创 2022-12-12 17:09:08 · 540 阅读 · 0 评论 -
MacOS13 python3 报错 mach-o file, but is an incompatible architecture (have ‘arm64‘, need ‘x86_64‘)
pip3 install原创 2022-12-09 17:38:21 · 5191 阅读 · 1 评论 -
MacOS13 安装python3.7 和 tensorflow1.14
python原创 2022-11-20 20:20:09 · 1266 阅读 · 0 评论 -
python3.8运行tensorflow1.14报错 an incompatible architecture (have ‘x86_64‘, need ‘arm64‘)
tensorflow原创 2022-11-20 20:06:41 · 521 阅读 · 0 评论 -
MacOS13 安装 python3.8.15
python3.8原创 2022-11-20 18:08:48 · 795 阅读 · 0 评论 -
ERROR: No matching distribution found for tensorflow==1.14.0
python3.9原创 2022-11-20 17:04:46 · 7228 阅读 · 1 评论 -
Mac 13.0 安装 Python3.6
python3.6原创 2022-11-20 16:34:21 · 454 阅读 · 0 评论 -
pyspark 报错 StructType can not accept object
pyspark原创 2022-10-27 10:11:54 · 464 阅读 · 0 评论 -
pyspark 报错 Can not infer schema for type
pyspark原创 2022-10-26 20:05:36 · 201 阅读 · 0 评论 -
pyspark 报错 Input row doesn‘t have expected number of values required by the schema
pyspark原创 2022-10-26 19:27:09 · 339 阅读 · 0 评论