• 카테고리

    질문 & 답변
  • 세부 분야

    프로그래밍 언어

  • 해결 여부

    미해결

안녕하세요?

17.08.26 00:37 작성 조회수 103

0

친절하고 쉽게 설명해주신 덕분에 강의 잘 보고 있습니다. 다름이 아니라 아래처럼 error message가 나와서 질문 드립니다. # coding=utf-8 t_file = open("t.txt", "wb") t_file.write(bytes("Good morning\n")) t_file.close() t_file = open("t.txt", "r") pp = t_file.read() print(pp) t_file.close() ============================================ C:\Python36-32\python.exe C:/Python36-32/Bonjure/practice_only.py Traceback (most recent call last): File "C:/Python36-32/Bonjure/practice_only.py", line 4, in t_file.write(bytes("Good morning")) TypeError: string argument without an encoding Process finished with exit code 1

답변 0

답변을 작성해보세요.

답변을 기다리고 있는 질문이에요.
첫번째 답변을 남겨보세요!