![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Peter Chan
bulala
展开
-
python爬虫简单实现
import requestsfrom bs4 import BeautifulSoupimport urllibimport os.pathdef file_extension(path): return os.path.splitext(path)[1]res = requests.get('http://so.sccnn.com/search/%D1%F9%BB%F...原创 2019-02-25 12:56:49 · 221 阅读 · 0 评论 -
python tensorflow
import tensorflow as tfimport numpy as npimport osos.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'# 定义一个函数x_data = np.random.rand(100)y_data = x_data * 0.1 + 0.2# 定义一个训练函数k = tf.Variable(0.)b = tf...原创 2019-02-26 17:23:07 · 119 阅读 · 0 评论