Skip to content

learn useful modules of python, both built-in and third-party

Notifications You must be signed in to change notification settings

MichaelXoXo/awesome-python-for-me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

awesome-python-for-me

Python 好资源

命令行工具

ipython

pylint

Python基础知识点

Python打包知识点

PEP

Python面向对象

module与package的区别

浅拷贝、深拷贝的区别

Python annotations的用法

Python 与鸭子类型

Python常量设计

Python闭包和装饰器

装饰器让你在一个函数的前后去执行代码。

@wraps接受一个函数来进行装饰,并加入了复制函数名称、注释文档、参数列表等等的功能。这可以让我们在装饰器里面访问在装饰之前的函数的属性。

Python 编码问题

我们用编辑器打开的文本,看到的一个个字符,最终保存在磁盘的时候都是以二进制字节序列形式存起来的。那么从字符到字节的转换过程就叫做编码(encode),反过来叫做解码(decode),两者是一个可逆的过程。编码是为了存储传输,解码是为了方便显示阅读。 str 本质上其实是一串二进制数据,而 unicode 是字符(符号),编码(encode)就是把字符(符号)转换为 二进制数据的过程,因此 unicode 到 str 的转换要用 encode 方法,反过来就是用 decode 方法

Python开发习惯

Python测试

pytest

mock

开发环境相关

python2与python3共存

安装完成之后,在CMD里面直接输入python会启动Python2,而使用activate py3(py3即之前Python3安装目录文件夹的名字)命令之后,再使用python即可切换至Python3,如下图所示。使用activate py3命令之后,在命令行前面会出现一个[py3]标记,此时使用任何的python命令都是在Python3下进行的。使用deactivate命令可取消激活Python3。

linux下,怎么查看默认python的路径?怎么修改默认的python版本?

Python常用技巧

Python执行命令行

##参考:

Python好文

Python好问题

编程基本功

python工具

学习资料总结

数据挖掘总结

数据分析实战

python技巧型

python-web实战

python面试题

Python好教程

有用的模块

收集写 python 项目时发现的好用的模块

argparse

mongodb

有趣的项目

Collect favorite python projects 🍔

参考

About

learn useful modules of python, both built-in and third-party

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published