![](https://img-blog.csdnimg.cn/33e6e7b7585242eb8fdc39395b8a8eff.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
【Python】库及相关参数整理
文章平均质量分 59
【Python】库及相关参数整理
MengYa_DreamZ
努力经营当下,直至未来明朗!(欢迎交流xy:半块巧克力哇,回复较快)
展开
-
【Python】简单明了的入门级知识点,常用python函数整理
python入门必备知识点,笔记化整理,python 函数易查找!基于Eric Matthes《Python编程从入门到实践》的自主学习笔记原创 2022-09-14 11:03:42 · 399 阅读 · 0 评论 -
【Torch】torch.load( )系列语句解读解读,易学易用
# Load all tensors onto the CPU【Torch】torch.load( )详细使用解读,易学易用# 将全部Tensor全部加载到cpu上>>> torch.load('tensors.pt', map_location=torch.device('cpu'))原创 2022-09-11 12:36:10 · 4477 阅读 · 0 评论 -
【Python】np.expand_dims()理解及实践
详细记录用法,清晰明了!np.expand_dims(a, axis = 0 )np.expand_dims(a, axis = 1 )np.expand_dims(a, axis = 2 )np.expand_dims(a, axis = 3 )np.expand_dims(a, axis = -1 )原创 2022-09-07 14:42:26 · 5126 阅读 · 5 评论 -
【Python】image.open(image_path)||image = np.array(image)||image = np.array(image)||
1.image.open(image_path)2.image = np.array(image)3.Opencv 相关延伸Python:一张图像在网络中会遇到什么?array和asarray原创 2022-09-07 11:11:55 · 4918 阅读 · 2 评论 -
【Python】read() || readline() || readlines()-笔记
Python提供了如下 3 种函数,实现读取文件中数据的操作:read() 函数:逐个字节或者字符读取文件中的内容;readline() 函数:逐行读取文件中的内容;readlines() 函数:一次性读取文件中多行内容。原创 2022-09-06 16:16:34 · 1369 阅读 · 0 评论 -
【Python】sys.argv[ ]简单易懂
0基础搞懂python sys.argv[ ]简单易懂,实践结合,简单明了不难理解sys.argv.__len__() == 2 就是表示返回元素个数为21.概念2.0基础?不懂命令行?看这里!3.懂些python基础,只想知道sys.argv[ ]用法3.1 sys.argv[0]:程序本身,也就是0指代码本身3.2 sys.argv[1]:命令行外部参数被输出3.3 sys.argv[2:]:命令行外部参数全输出原创 2022-09-06 10:49:58 · 2101 阅读 · 1 评论 -
【Python】Parser 用法-通俗易懂!
AssertionError: Please activate one of the实例化ArgumentParser使用add_argument函数添加参数add_argument() 方法定义如何解析命令行参数使用parse_args解析参数案例实践:action的可选参数store_true的作用 报错AssertionError: Please activate one of the原创 2022-04-27 17:23:07 · 49029 阅读 · 1 评论 -
【Python】**kwargs
Python3:**kwargs原创 2022-02-28 14:25:51 · 268 阅读 · 0 评论 -
【Python3】mkdir(path,mode)、makedirs(path, mode=0o777, exist_ok = False)
python3:mkdir(path,mode)和makedirs(path, mode=0o777, exist_ok = False)原创 2022-02-28 13:45:48 · 3036 阅读 · 0 评论 -
【Python】Python_utils package笔记
Welcome to Python Utils’s documentation! — Python Utils 2.5.5 documentationimport argparse import os import sys import uuid from datetime import datetime as dt import numpy as np import torch import torch.distributed as dist import torch.multi..原创 2021-11-22 16:27:53 · 348 阅读 · 0 评论 -
【PyCharm】 : Cannot open Local Terminal Failed to start [powershell.exe] in C:\Users\.......的原因(高效解决)
Windows 下pycharm terminal 不能打开,报错Can't Open Local Terminal Failed to start cmd.exePyCharm : Cannot open Local Terminal Failed to start [powershell.exe] in C:\Users\.........的原因原创 2021-11-04 15:14:33 · 19784 阅读 · 27 评论 -
【Python学习】09 类
基于Eric Matthes《Python编程从入门到实践》的自主学习笔记 类原创 2021-08-03 11:15:49 · 155 阅读 · 1 评论 -
【Python学习】08 函数模块化6
基于Eric Matthes《Python编程从入门到实践》的自主学习笔记函数模块化原创 2021-08-02 15:36:46 · 122 阅读 · 0 评论 -
【Python学习】08 函数|实参和形参|返回值1-4
基于Eric Matthes《Python编程从入门到实践》的自主学习笔记python函数\实参\形参\返回原创 2021-08-02 10:37:44 · 164 阅读 · 1 评论