![](https://img-blog.csdnimg.cn/2019092715111047.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
python入门
python基础
qq_52242662
热爱生活
展开
-
python深、浅拷贝
python深、浅拷贝原创 2022-05-12 23:07:49 · 169 阅读 · 0 评论 -
python extend和append的区别
python extend和append的区别原创 2022-04-17 13:51:17 · 497 阅读 · 0 评论 -
python创建多维数组
python多维数组的建立原创 2022-04-12 22:42:08 · 4239 阅读 · 0 评论 -
python数据交换小技巧
python数据交换小技巧原创 2022-04-10 13:42:35 · 650 阅读 · 0 评论 -
Bisect 模块介绍
bisect模块介绍(bisect函数和insort函数)原创 2022-03-29 21:12:46 · 772 阅读 · 0 评论 -
正则表达式特殊字符介绍①
正则表达式特殊字符原创 2022-03-28 22:33:53 · 132 阅读 · 0 评论 -
python二维数组的定义方式
python中二维数组的定义方式原创 2022-03-21 11:11:03 · 11621 阅读 · 0 评论 -
查找两个列表里重复的元素
a = [1, 2, 3]b = [2, 4, 10]Rep = [k for k in a if k in b]print(Rep) #Rep存放的是a中与b重复的元素output: [2]原创 2021-11-26 23:42:50 · 374 阅读 · 2 评论 -
python入门——书写规范
写完代码后:按工具栏”Code“————”reformat code“或者按Ctrl+Alt+L帮助你自动排列原创 2021-09-09 15:07:00 · 47 阅读 · 0 评论 -
python入门——变量定义和使用
变量定义不同于其他编程语言e.g.name='Jack'(变量定义成功) or number=100(定义数字变量)地址提取:print(id(变量名))e.g.print(id(name)) 类型提取:print(type(变量名))e.g.print(type(name))原创 2021-09-07 20:17:12 · 84 阅读 · 1 评论 -
python入门——print输出函数
print() function 是用来输出的函数,可以输出在显示屏上,也可以输出在文件中; 输出数字e.g.print(5201314) print(3+1)\ 输出字符串e.g.print('helloworld') or print("helloworld") or print('hello','world','python') 常用转义字符:\ne.g.print(hello\nworld) \t \b \r(本行开头) PS:注意输出\ ' "时需要多加一个\...原创 2021-09-07 19:52:17 · 346 阅读 · 0 评论