- 博客(8)
- 收藏
- 关注
转载 Tensorflow+gpu安装
1、方法很简单:在安装好anaconda的前提下,直接用命令conda install tensorflow-gpu==1.4.1即可,其中1.4.1是版本号,可修改。 2、conda安装包如果没有指定设定的虚拟环境是直接安装在root下的,环境管理:conda env list, conda env remove -n env_name --all,conda env create ...
2018-03-19 11:04:00
64
转载 利用scrapy爬取豆瓣《三体》短评
1、首先是利用scrapy startproject Santi建立一个项目,项目每个文件的含义其他的博客中已经很清楚了。 参考:https://cuiqingcai.com/3472.html 需要注意文件名命名的时候:spider文件夹里面的主Python文件不能和项目名重复,例如我的项目名称是Santi,那么Python文件名不可以是三体。否则用scrapy runspider...
2017-12-29 10:44:00
139
转载 LeetCode问题9
Palindrome Number 问题描述如下: Determine whether an integer is a palindrome. Do this without extra space. 关键在不占用额外的空间的情况下生成它的回文序列,然后作差即可。 如果相等,说明回文,如果不相等说明不是回文。 注意点:1、负数不是回文序列;2、在生成整数的回文如果计算过程溢出,...
2017-09-28 21:59:00
76
转载 LeetCode问题38
Count and Say The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3. 21 4. 1211 5. 111221 1is read off as"one ...
2017-09-28 21:30:00
76
转载 LeetCode问题4
Median of Two Sorted Arrays 问题描述如下: There are two sorted arraysnums1andnums2of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should b...
2017-09-26 20:26:00
86
转载 LeetCode问题6
ZigZag Conversion 问题描述如下: The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibi...
2017-09-25 00:00:00
85
转载 LeetCode问题5
Longest Palindromic Substring Given a strings, find the longest palindromic substring ins. You may assume that the maximum length ofsis 1000. 最开始的采用了很暴力的方法如下: class Solution { publi...
2017-09-24 22:30:00
82
转载 LeetCode问题7
Reverse digits of an integer. Example1:x = 123, return 321Example2:x = -123, return -321 Note: The input is assumed to be a 32-bit signed integer. Your function shouldreturn 0 when the reve...
2017-09-24 19:29:00
85
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人