
Python
文章平均质量分 62
Fly_TheWind
这个作者很懒,什么都没留下…
展开
-
Scrapy爬取中国日报新闻--( 一 )
1、首先需要安装Scrapy 但是由于在Windows上Scrapy安装出现了各种问题,要求需要最新版的VS。出于偷懒的心理,推荐下载Anaconda,使用Anaconda来管理Python不仅省力,而且方便。 下载Scrapy只需要conda install scrapy 关于Anaconda下载,如果在官网下载太过慢的话,可以选择在清华的镜像网站进行下载。2、Scrapy 创建工程 在A原创 2017-07-17 14:11:39 · 2689 阅读 · 0 评论 -
Scrapy抓取西刺高匿代理ip
如题:因为想试试代理ip,所以就想着在西刺上爬一些ip用用如上两节所示,具体如何建立Scrapy工程的细节不在赘述。scrapy startproject xiciscrapy genspider xici http://www.xicidaili.com/nn/建立工程后,使用IDE打开,首先编辑item#items.py# -*- coding: utf-8 -*-# Define here原创 2017-08-10 17:10:59 · 4093 阅读 · 0 评论 -
TensorFlow Course Day 1
TensorBoard (Visualization) # day 1导入新建tensorBoard.py文件from __future__ import print_functionimport tensorflow as tfimport os 设置日志文件的默认路径# The default path for saving event files is the same f...原创 2018-10-19 05:51:45 · 284 阅读 · 0 评论 -
Basic | Day 2
Basic math operationfrom __future__ import print_functionimport tensorflow as tfimport os# Defining some constant valuesa = tf.constant(5.0, name="a")b = tf.constant(10.0, name="b")# Some bas...原创 2018-10-20 05:05:13 · 188 阅读 · 0 评论 -
google翻译 中文文本大量翻译成英文
如题,我遇到了一下情况,需要将大量wiki百科的中文文本翻译成英文面对这个问题,有以下几点困难google 翻译的API 已经开始收费了。不在提供免费的API服务。纯手工在google翻译的网页上翻译,对程序猿来说,你是认真的吗?在使用github上的开源项目时,发现即使通过web脚本调用google网页翻译的免费服务时,依然存在着字符串长度限制,已经会发生长度超出,翻译失败。在我解...原创 2018-11-13 05:53:22 · 6035 阅读 · 0 评论 -
tensorflow初试:使用多层感知机预测MNIST数字
代码:https://github.com/BeCuriousCat/LearningML/blob/master/MLP_tensorflow.ipynbimport tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("MNI...原创 2019-08-22 10:46:38 · 275 阅读 · 0 评论