自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 收藏
  • 关注

原创 TypeError: test() argument after * must be an iterable, not int

TypeError: test() argument after * must be an iterable, not int

2023-02-13 08:52:09 381

原创 X Error of failed request: BadAlloc (insufficient resources for operation)

X Error of failed request: BadAlloc (insufficient resources for operation)

2023-02-12 18:12:40 905

原创 not vs ~

~True

2022-11-26 22:01:56 163

原创 端口 XXXX 已经被占用, 请尝试其他端口

端口占用

2022-11-26 21:11:55 527

原创 Linux的su命令

su命令

2022-11-26 19:41:55 2211

原创 pycharm中导入的第三方库时有红色波浪线

pycharm中导入的第三方库时有红色波浪线

2022-11-06 23:07:59 3133

原创 could not create folder “sftp://xxx.xxx.xxx.xxx/.../venv“. (Permission denied)

could not create folder "sftp://xxx.xxx.xxx.xxx/.../venv". (Permission denied)

2022-11-06 16:16:05 1322 2

原创 bisect模块的使用

bisect是python内置模块,用于有序序列的插入和查找。

2022-10-07 21:03:54 351

原创 绘图基本设置

绘画

2022-07-01 00:46:08 66

原创 jupyter主题的简单配置

自定义jupyter主题

2022-07-01 00:43:06 867

原创 matplotlib子图的刻度旋转

plt子图坐标轴旋转:

2022-07-01 00:06:06 776

原创 matplotlib获取颜色循环

plt颜色

2022-06-30 22:29:33 592

原创 07 Python常见数据结构

  Python中常见的数据结构可以统称为容器(container)。其中主要的容器有三类:序列(列表、元组和字符串等),映射(如字典)和集合(set)。序列  序列是有序的,序列中的每个元素都有自己的编号。Python有6中内建的序列,包括列表、元组、字符串、Unicode字符串、buffer对象和xrange对象。字符串元组列表映射字典集合(set)公共操作...

2022-02-26 19:13:57 770

原创 08 推导式

列表推导式字典推导式集合推导式

2022-02-26 15:03:51 47

原创 06 break or continue

循环中满足一定条件后退出循环的两种不同方式:(1)break:终止此循环# break:终止此循环i = 1while i <= 5: if i == 4: print(f'吃饱了不吃了') break print(f'吃了第{i}个苹果') i += 1output:(2)continue: 退出当前一次循环继而执行下一次循环代码i = 1while i <= 5: if i == 3:

2022-02-23 23:46:01 103 1

原创 05 运算符

运算符算数运算符赋值运算符# 单变量赋值num=1# 多变量赋值num1, float1, str1 = 10, 0.5, 'hello world' # 多变量赋相同值a = b = 10 复合赋值运算符c=10c+=1+2 # 13 先算运算符右侧1 + 2 = 3, c += 3 , 推导出c = 10 + 3比较运算符也叫关系运算符。逻辑运算符a = 0b = 1c = 2print((a < b) and (b < c)) # Tru

2022-02-23 23:32:26 66

原创 04 输出和输出

输入input(‘提示内容’)password = input('请输⼊您的密码:')print(f'您输⼊的密码是{password}') print(type(password))注意:(1)一般将input输入的数据存储为变量。(2)input接收的任何数据默认都是字符串数据类型。输出格式化输出格式化字符串age = 18name = 'TOM'weight = 75.5student_id = 1# 我的名字是TOMprint('我的名字是%s' % name)

2022-02-23 23:04:53 152

原创 数据类型的检查与转换

检测数据类型type()a=1print(type(a)) #<class 'int'>b = 1.1print(type(b)) # <class 'float'> -- 浮点型c = Trueprint(type(c)) # <class 'bool'> -- 布尔型d = '12345'print(type(d)) # <class 'str'> -- 字符串e = [10, 20, 30]print(type(e)) # &lt

2022-02-23 00:55:00 519

原创 注释和debug

注释 # 单行注释'''多行注释'''print('hello,world')debug打断点 --> debug文件名Debugger:变量及其细节Console:输出StepOver:按步执行

2022-02-23 00:31:14 140

原创 Jupyter notebook打开E盘文件夹

Anaconda默认打开位置在C盘,如果要打开其他盘的文件,有以下两个方法(首先当然是要打开 命令提示符 ):方法一:jupyter notebook [目标文件路径]方法二:先切换至目标文件夹,再打开jupyter notebook相关链接:https://blog.csdn.net/GoodNightBaby/article/details/108400157......

2022-02-20 22:00:48 2451

原创 如何从一台远程服务器向另一台远程服务器上读取文件

不妨设服务器A:192.168.23.230,服务器B:192.168.132.49,现在想在服务器A上读取服务器B的文件,有以下两种方法:方法一:本地复制登录服务器B,讲B上的相应文件复制到本地,然后再本地文件复制到服务器A方法二:挂载mount、...

2022-02-20 18:28:43 2118

原创 Learning English in python

Terms About PythonEnglishChineseformat string格式化字符串function函数variable变量octothorpe / pound character#注释parenthess括号exponent指数multiplication乘division除addition加substraction减underscore下划线argument参数argu

2021-12-20 09:07:48 406

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除