### 1.环境配置

  • Ubuntu16.04
  • python3
  • Chrome以及与之对应的chromedriver
  • Selenium

版本参考:chromedriver下载地址

2.代码

1.在selenium中使用代理,在Ubuntu中设置sock5代理端口

1
2
3
from selenium.webdriver.chrome.options import Options
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=socks5://127.0.0.1:1080')

2.爬虫类

Recurrent Neural Networks

人类不会每时每刻都开始思考。当你阅读这篇文章时,你会根据你对之前单词的理解来理解每个单词。你不会立刻忘记之前读的所有东西,然后再从头开始思考。你的想法有持久性。

传统的神经网络无法做到这一点,这似乎是其一个主要的缺点。例如,假设您想要对电影中每个时间点发生的事件进行分类。目前尚不清楚传统神经网络如何利用其对电影中先前事件的记录来影响之后发生的事情。

#9. Palindrome Number

Determine whether an integer is a palindrome. An integer is a
palindrome when it reads the same backward as forward.

Example 1:

Input: 121
Output: true
Example 2:

Input: -121
Output: false
Explanation: From left to right, it reads -121. From right to left, it becomes 121-. Therefore it is not a palindrome.
Example 3:

Input: 10
Output: false
Explanation: Reads 01 from right to left. Therefore it is not a palindrome.
Follow up:

Coud you solve it without converting the integer to a string?