![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
vehicoder
要做一个汽车界最会玩游戏的程序猿
展开
-
TensorFlow2.1.0安装错误解决办法-wrapt错误和dll加载错误
我在安装TensorFlow2.1.0时,遇到了以下错误。自己百度了很多方法,但是都比较零散,于是我把自己的经历总结成这篇教程分享给大家,希望能够有所帮助。1. wrapt安装错误Building wheel for wrapt (setup.py) ... Error ERROR: Command errored out with exit status 1: command: '...原创 2020-02-06 17:53:40 · 5408 阅读 · 10 评论 -
关于python3.7中字典的值中含有中文时的比较问题
代码如下:dic2 = { 's': '在'}if dic2['s'] is '在': print(1) print(id(dic2)) print(id('在'))结果如下图,很奇怪,可以发现他们的id是相同的,所以is成立。当我们用is来比较英文或者数字时,和==的效果是一样的。此时的字典是用eval函数从str转换而来的。train_info_dic = ev...原创 2019-08-18 22:51:59 · 1361 阅读 · 0 评论