Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 622 Bytes

File metadata and controls

26 lines (23 loc) · 622 Bytes

pep8(pycodestyle)

Summary

doc:Python style guide checker 用於檢查python代碼是否符合pep8標準, 該項目目前更名爲pycodestyle.

install

pip install pep8

directory tree

ls pep8*

pep8.py

pep8-1.7.0.dist-info

可以看到只有這一個文件.

usage

python -m pep8 python_file_name.py
python_file_name.py:101:6: E225 missing whitespace around operator
--show-source  # 顯示代碼

這是最簡單的用法。當然還有很多選項,詳情請參考官方文檔,這裏只是聲明這個模塊的存在。