![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python问题
qq_36321899
这个作者很懒,什么都没留下…
展开
-
python导入模块报错FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;
问题:导入tensorflow时发生告警tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as ...原创 2019-08-22 08:59:29 · 2213 阅读 · 0 评论 -
python 运行时出现fixture xxx not found
错误内容:E fixture 'host' not found> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_tes...原创 2019-09-12 11:53:05 · 7338 阅读 · 2 评论 -
求质数,优化
优化前import mathdef prime(n): if n%2 == 0: return n==2 if n%3 == 0: return n==3 if n%5 == 0: return n==5 for p in range(7,int(math.sqrt(n))+1,2): #只考虑奇数作为可能因...原创 2019-09-17 16:28:05 · 193 阅读 · 0 评论 -
随记
python获取版本的方法:第一种获取方法:import sys print(sys.version)print(sys.version_info)3.6.8 (default, Aug 20 2019, 17:12:48) [GCC 8.3.0] sys.version_info(major=3, minor=6, micro=8, releaselevel=‘final’,s...原创 2019-09-25 21:38:23 · 113 阅读 · 0 评论