小白福利|python编程必须要掌握的这12种基础知识,你会多少?
source link: https://blog.csdn.net/python_9988/article/details/119255014
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
小白福利|python编程必须要掌握的这12种基础知识,你会多少?
Python 编程中常用的12 种基础知识总结:正则表达式替换,遍历目录方法,列表按列排序、去重,字典排序,字典、列表、字符串互转,时间对象操作,命令行参数解析(getopt),print 格式化输出,进制转换,Python 调用系统命令或者脚本,Python 读写文件
在这里我还是要介绍一下小编推荐一个学python的学习老师围鑫(同音),762459510 ,她会安排学习的。,无论你是大牛还是小白,是想转行还是想入行都可以来了解一起进步一起学习!内有开发工具,很多干货和技术资料分享!。各种入门资料啊,进阶资料啊,框架资料啊 爬虫等等,都是有的,风里雨里,小编都在里等你
1、正则表达式替换
2、遍历目录方法
3、列表按列排序(list sort)
4、列表去重(list uniq)
5、字典排序(dict sort)
6、字典,列表,字符串互转
7、时间对象操作
8、命令行参数解析(getopt)
9、print 格式化输出
9.2、进制转换
有些时候需要作不同进制转换,可以参考下面的例子(%x 十六进制,%d 十进制,%o 八进制)
10、Python调用系统命令或者脚本
11、Python 捕获用户 Ctrl+C ,Ctrl+D 事件
12、Python 读写文件
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK