Python基础
0 人感兴趣 · 14 次引用
- 最新
- 推荐

python 文件操作知多少
对于文件大家应该都不陌生,但是在接触计算机之前,通常将文件定义为内容的载体.如公文书信或者有关政策理论方面的文章.计算机文件也一样,而且在计算机中文件的类型更加丰富多样,用途广泛.有的是用来支撑程序运行的,有的只是单纯用于数据存储,文件使用文件扩展

Python 代码调试指南
作为经验丰富的开发人员,即便你编写了清晰易读的代码,并对代码进行了全方位的测试,但在某些时候程序还是会不可避免地出现一些奇怪的Bug,这时候你需要以某种方式进行Debug。不少程序员诉诸于使用一堆print语句来查看代码运行情况,这种方法着实有点低级。






浅析 Python3 列表操作之 * 和 *=
初学Python时总是会将a*=n理解为a=a*n,稍微深入后就会知道在Python中的不同,其中*调用__mul__ ,而*=调用__imul__ 。

【Python】__name__ 是什么?
在我们浏览一下 python 文件或者自己写 python 代码的时候,时常会在代码的最后加上这样的一行代码