0
import pep8
s = """
def a:
pass
def b:
pass
"""
pep8.StyleGuide().is_such_method_exists_for_string_?(s)
// 그런 다음 목록에 넣으시겠습니까?파이썬에서 pep8에게 파일 대신 문자열을 구문 분석하도록 요청할 수 있습니까?
import pep8
s = """
def a:
pass
def b:
pass
"""
pep8.StyleGuide().is_such_method_exists_for_string_?(s)
// 그런 다음 목록에 넣으시겠습니까?파이썬에서 pep8에게 파일 대신 문자열을 구문 분석하도록 요청할 수 있습니까?
import pep8
lines = """
def a:
pass
def b:
pass
"""
checker = pep8.Checker(
lines=lines.strip().splitlines(),
filename=None,
show_source=True
)
result = checker.check_all()
내 날을 구하십시오! 감사! – miR172
답변을 수락하십시오! – Farsheed
죄송합니다. 처음 질문 : P – miR172