摘要: import tensorflow as tf classes = 3labels = tf.constant([0,1,2]) # 输入的元素值最小为0,最大为2output = tf.one_hot(labels,classes)sess =... 阅读全文
posted @ 2020-11-01 16:03 Python研究者 阅读(97) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf classes = 3 labels = tf.constant([0,1,2]) # 输入的元素值最小为0,最大为2 output = tf.one_hot(labels,classes) sess = tf.Session() with tf.Se 阅读全文
posted @ 2020-11-01 16:00 Python研究者 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 问题描述 启动Jupyter Notebook之后它会自动加载原始的python环境,如下图所示: 但是自己又在Anaconda中下载了新的虚拟环境,很多库都在这个虚拟环境中,那么如何让Jupyter Notebook加载自己的这个虚拟环境呢?更换步骤 打开... 阅读全文
posted @ 2020-11-01 14:42 Python研究者 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 问题描述 启动Jupyter Notebook之后它会自动加载原始的python环境,如下图所示:但是自己又在Anaconda中下载了新的虚拟环境,很多库都在这个虚拟环境中,那么如何让Jupyter Notebook加载自己的这个虚拟环境呢? 更换步骤 打开命令行窗口,输入:conda env li 阅读全文
posted @ 2020-11-01 14:41 Python研究者 阅读(3522) 评论(0) 推荐(0) 编辑
摘要: 一文教你简单爬取腾讯招聘 目录 一、网页分析二、功能实现2.1 拼接URL2.2 获取数据 三、完整代码四、保存结果 今天我们来爬取腾讯招聘的相关信息。 链接:https://careers.tencent.com/search.html 一、网... 阅读全文
posted @ 2020-11-01 09:00 Python研究者 阅读(78) 评论(0) 推荐(0) 编辑