[ErrorArchive] SyntaxError: invalid syntax.

MIDWINTERandFEBΒ·2023λ…„ 3μ›” 3일

Python_ErrorArchive

λͺ©λ‘ 보기
1/3

πŸ’» 원인

  • 문법상 였λ₯˜

import textwrap
test_a = textwrap.shorten("Life is too short, you need python", width=15)
print("μΆ•μ•½ν‘œμ‹œ [...]: textwrap.shorten(β€œsentence”, width=nn)")
print(test_a)
print()

⬇

import textwrap
test_a = textwrap.shorten("Life is too short, you need python", width=15)
print("μΆ•μ•½ν‘œμ‹œ [...]: textwrap.shorten('sentence', width=nn)")
print(test_a)
print()

πŸ’» κ²°κ³Ό

  • ν°λ”°μ˜΄ν‘œλ₯Ό μž‘μ€λ”°μ˜΄ν‘œλ‘œ λ°”κΏ”μ€¬λ”λ‹ˆ
    였λ₯˜μ—†μ΄ 싀행됨.
profile
ν•œκ²¨μšΈκ³Ό 2μ›”

0개의 λŒ“κΈ€