- 博客(5)
- 收藏
- 关注
原创 notepad++正则化替换文本部分内容
想要将文档中的人民网北京n月m日电 (记者q)进行替换,利用notepad++中的正则化进行替换 人民网(.*)) eg:XXX(.*)XX 参考于https://iduyao.cn/topics/320
2020-10-15 15:49:11 486 1
原创 python将unicode转成中文
在调试程序时发现跑出来的结果为这样的形式而不是中文,为了记载一下自己的学习心得,进行了一下整理 1. 在程序的头部添加 #coding=utf-8 或 #coding=gbk 或 #-*- coding:utf-8 -*- 如果添加完还没有改善,尝试第二种方法即可 2.将程序的 print(mod.summarize(text, 3)) 改为 print(str(mod.summarize(text,3)).decode('unicode-escape')) 就好了 参考于https
2020-10-09 14:32:20 630 1
原创 ImportError: cannot import name dense_features
ImportError: cannot import name dense_features 处理数据集时发现有ImportError: cannot import name dense_features问题,可以通过以下方式来解决: ```bash pip uninstall tensorflow_estimator pip install tensorflow_estimator 若不加版本会默认下载最新的版本,因为我需要是anaconda2,因此直接在anaconda2的目录下下载的,详细信息如下
2020-09-17 10:10:14 1304 1
原创 Requirement already satisfied:
Requirement already satisfied: 想在anaconda3中安装jieba,可却显示Requirement already satisfied 解决办法,修改安装路径: 格式:pip install --target=目标路径 工具包名字 成功解决~ 转载自:https://blog.csdn.net/qq_33547191/article/details/86552214 ...
2020-09-10 15:29:07 282
原创 linux下如何创建与运行Python文件
Linux下创建与运行Python文件 (1)创建文件 vim practice.py (2)创建后,如何运行Python文件呢? python practice.py tip:创建Python文件时,要在开端写: #!/usr/bin/python #coding:utf-8 可有效解决 python中默认的编码格式是ASCII格式的问题 ...
2020-09-09 16:31:39 1076
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人