π SyntaxError: invalid non-printable character U+200B
β μ€λ₯κ° λ°μν μ΄μ
μλ μ½λλ₯Ό 볡μ¬νμ¬ λΆμ¬λ£κΈ°λ₯Ό νν, μ€ννλλ° μ€λ₯κ° λ¬λ€.
items = 'zero one two three'.split()
print(items)β

- μ μ½λ λΈλκ³Ό λ¬λ¦¬ VS codeμμλ print() λ€μ μλͺ»λ 곡백(space)κ° μλ€λ κ²μ μ μκ° μλ€.
β
μμ
- μ½λλΈλμ spaceλ₯Ό μ§μ°κ³ , enterλ₯Ό λ€μ μ³μ£Όλ©΄μ μ½λμ 곡백μ λ§μΆ°μ€λ€.
- νμ΄μ¬μ νμ€μ© ν΄μ/λννλ©΄μ λμνλ μΈν°νλ¦¬ν° λ°©μμ΄λ―λ‘ κ³΅λ°±(space, tab ....)μ μ μν΄μ μ¨μ£Όμ΄μΌ νλ€.
items = 'zero one two three'.split()
print(items)

π λ§ν¬
μ°Έκ³ λΈλ‘κ·Έ
https://jiwang77.tistory.com/entry/invalid-non-printable-character-U00A0-μλ¬-μμΈ-λ°-ν΄κ²°