#-*- coding: utf-8 -*-
from sys import argv
script,txt=argv
a=open(txt. 'w')
a.truncate()
c=raw_input("입력")
a.write(c)
이걸 실행시키면
File "print.py", line 7
a=open(txt. 'w')
^
SyntaxError: invalid syntax
이렇게뜨는데 이거 왜이런거임???
#-*- coding: utf-8 -*-
from sys import argv
script,txt=argv
a=open(txt. 'w')
a.truncate()
c=raw_input("입력")
a.write(c)
이걸 실행시키면
File "print.py", line 7
a=open(txt. 'w')
^
SyntaxError: invalid syntax
이렇게뜨는데 이거 왜이런거임???
아 내가병신이다
. 가아니라 ,이거네 시발
txt. 'w' => txt, 'w' (점을 콤마로...)