在编写代码时,应避免使用非标准或不常见的缩写,除非这些缩写在项目外也非常明了,如IOT、DNS、IP等。
count
cnt
password
pwd
username
usr
# 不推荐的函数命名 def get_cnt(): return 0
# 推荐的函数命名 def get_cnt(): return 0