scrapy新建项目流程
参考连接: https://segmentfault.com/a/1190000013268442 https://cdn2.jianshu.io/p/c4234432a2f1 新建爬虫项目:scrapy startproject projectname 自定义items.py。 在settings.py中添加多agentlist,然后在middlewares.py中添加使用多agent代码,在s… 阅读更多 »scrapy新建项目流程
参考连接: https://segmentfault.com/a/1190000013268442 https://cdn2.jianshu.io/p/c4234432a2f1 新建爬虫项目:scrapy startproject projectname 自定义items.py。 在settings.py中添加多agentlist,然后在middlewares.py中添加使用多agent代码,在s… 阅读更多 »scrapy新建项目流程
参考链接: https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/#0 https://codelabs.developers.google.com/codelabs/tensorflow-for-poets-2-tflite/#7 迁移学习训练模型: git源代码: https://github.com/goog… 阅读更多 »迁移学习图像分类的android应用(2)
参考链接:https://hackernoon.com/creating-insanely-fast-image-classifiers-with-mobilenet-in-tensorflow-f030ce0a2991 利用迁移学习获得模型: git源码https://github.com/tensorflow/tensorflow 利用image_retraining下的retrain.py文… 阅读更多 »迁移学习图像分类的android应用
1、添加用户:useradd -m 用户名;设置密码passwd 用户名 2、删除用户:userdel -r 用户名 3、用新建的用户登录时,只显示$符号,不显示用户名和路径:切换到root用户,使用命令usermod修改shell类型,usermod -s /bin/bash 用户名
在进行远程连接时,使用screen -S name命令新建了一个screen 按ctrl+a,再按d退出该screen,但在该screen下的程序还会一直在运行 按ctrl+a,再按k,终止该screen screen -ls 展示所有screen screen -r 回退到之前的screen,如果不能回退,就先screen -d ###,再screen -r screen -S ### -X q… 阅读更多 »screen简单的命令
import math def isPrime(n): if n<=1: return False if n==2 or n==3: return True if n%2==0:#偶数false return False for i in range(3,int(math.sqrt(n))+1,2):#奇数,是否能被<=sqrt(n)的数整除 if n%i==0:#能整除,false … 阅读更多 »判断一个数是否为质数
参考链接:https://docs.anaconda.com/anaconda/install/linux 1、去官网下载对应版本的anaconda。 2、安装anaconda:bash anacondaxxxx.sh 3、安装过程中可以自由选择安装路径,比如安装在/home/code/python/anaconda2路径下 4、修改环境变量:vi /etc/profile,在文档最后添加 exp… 阅读更多 »anaconda安装
参考链接:https://blog.csdn.net/simple_the_best/article/details/77005400 1、安装jupyter:sudo pip install jupyter (个人先是激活了虚拟环境py2(在py3中没成功,原因待解决),然后在虚拟环境中安装的jupyter) 2、添加jupyter配置文件:jupyter notebook –generate… 阅读更多 »jupyter远程访问
1、输入命令wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0b2.tgz ,下载python文件 2、解压缩 tar -zxvf Python-3.7.0b2.tgz 3、cd Python-3.7.0b2 进入文件夹 4、./configure –prefix=/usr/local –with-ssl 5、make &… 阅读更多 »python3.7安装
1、新建maven项目 2、在本地添加stanford-parser.jar、stanford-parser-3.9.1-models.jar。(如何用maven在本地添加jar,见IntelliJ 常见问题) 3、在项目中引用这两个jar 4、复制data文件夹、ParserDemo、ParserDemo2文件,在运行参数中设置:edu/stanford/nlp/models/lexparser… 阅读更多 »stanfordparser使用