python
YKbsmn
还需要沉淀
展开
-
Windows系统安装PyTorch
window安装pytorch原创 2022-08-16 19:01:56 · 944 阅读 · 0 评论 -
为什么会出现Script file ‘D:\Anaconda3\envs\paddle_env\Scripts\pip-script.py‘ is not present.
为什么 Anaconda\Scripts\pip-script.py 不存在?解决方法原创 2022-07-26 16:10:58 · 1323 阅读 · 0 评论 -
[x for x in list_a if not np.isnan(x)]和[x if not np.isnan(x) else None for x in list_a]的区别
对于[x for x in list_a if not np.isnan(x)]和[x if not np.isnan(x) else None for x in list_a]的实例讲解原创 2022-07-25 21:32:37 · 298 阅读 · 0 评论 -
Python数据分析与展示
一、Numpy库入门1、Numpy.array()生成一个ndarray数组。2、ndarray对象的属性属性 说明 .ndim 秩,即轴的数量或维度的数量 .shape ndarray对象的尺度,对于矩阵,n行m列 .size ndaray对象元素的个数,相当于.shape中m*n的值 .dtype ndarray对象的元素类型 .i...原创 2019-10-12 15:42:28 · 330 阅读 · 0 评论 -
python基础
一、函数:1、评估函数eval():去掉参数最外侧引号并执行余下语句的函数eval(<字符串或字符串变量>) >>>eval("1") 1 >>>eval("1+2") 3 >>>eval(' "1+2"') '1+2'2、输入函数input():从控制台获得用户输入的函数...原创 2019-07-06 20:32:33 · 1100 阅读 · 0 评论 -
Python 文件输入输出和数据处理
一、二、打开模式和关闭(1)打开模式文件的打开模式 描述 ‘r’ 只读模式,默认值,如果文件不存在,返回FileNotFoundError ‘w’ 覆盖写模式,文件不存在则创建,存在则覆盖 ‘x’ 创建写模式,文件不存在则创建,存在则返回FileExistsError ‘a’ 追加写模式,文件不存在则创建,存...原创 2019-08-07 00:17:37 · 459 阅读 · 0 评论 -
Python的标准库和第三方库
Python社区(可以搜索任何主题的第三方库):https://pypi.org/一、第三方库的安装1、pip安装常用命令:(1)pip install <第三方库名>(2)pip install -U<第三方库名>:使用-U标签更新已安装的指定第三方库(3)pip uninstall <第三方库名>:卸载指定的第三方库(4)pi...原创 2019-08-14 00:02:00 · 360 阅读 · 0 评论