python
Tcanhe-Svv
菜
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python-class2
1.numpy#demoimport numpy as np #np.array(collection) #collection 可以是列表或元组 e = ((1, 2, 3), (2, 4, 1)) e1=(2,2) print('********array()***********') a = np.array(e) #显示元素 print(a) print('********zer...原创 2018-04-10 09:09:46 · 219 阅读 · 0 评论 -
python-wordcloud
遇到的问题:1. scipy 库 导入有问题 找不到模块 第一次安装时下载了 .whl 文件 pip install 绝对路径\.... .whl 解决办法: pip install scipyOrz...................................................................2.英文(上课老师的demo)import ...原创 2018-04-04 21:31:25 · 531 阅读 · 0 评论 -
Missing parentheses in call to 'print' - python error
很简单的小错误咯版本不一致print "outout after Training:"出现错误:Missing parentheses in call to 'print' 加上 ( ) 就好了print ("outout after Training:")原创 2018-05-16 09:33:15 · 2017 阅读 · 0 评论 -
【python】爬取微博内容
某大大在微博上更文,老翻来翻去的太麻烦,一时兴起便想用python爬一下,结果保存为txt文档 目前列出了 文章的网站版url 保存为JSON文件 先贴一下代码 原代码https://blog.youkuaiyun.com/d1240673769/article/details/74278547(下面略作修改) # -*- coding: utf-8 -*- # author-Svv 18.08.1...转载 2018-08-17 20:39:10 · 4968 阅读 · 0 评论 -
【python】正则表达式的学习
原文地址 : https://www.cnblogs.com/lzw121/p/6306698.html转载 2018-08-17 20:45:34 · 194 阅读 · 0 评论 -
python | pip 更新问题
好久没用python 最近打算安装TensorFlow时 发现pip又更新了 便出现了下面的问题 按照提示直接打命令应该就可以更新的,但是多次尝试 未果 之后在网上找了如下指令 python -m pip install -U --force-reinstall pip 仍是安装失败,但是进度条到了70%,相比较还是有进步的 后来我换了热点,进度条速度飞快,安装成功 难道...原创 2019-03-10 10:56:07 · 421 阅读 · 0 评论 -
python | 查看pip支持的文件名和版本
importpip._internal print(pip._internal.pep425tags.get_supported()) 64位的需要在pip后面加个_internal原创 2019-03-17 19:19:16 · 6744 阅读 · 12 评论 -
tensorflow | Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX
报错: Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 解决: 1.重新安装python3.7.2 2.打开https://github.com/fo40225/tensorflow-windows-wheel在里面找到对应的.whl文件 报错提...原创 2019-03-21 16:53:16 · 216 阅读 · 0 评论
分享