파이썬 파일 (x.py) 상단에 아래와 같이 입력
#!/usr/bin/env python
관련URL : https://stackoverflow.com/questions/41082302/ah01215-8-exec-format-error-exec-of-var-www-python-hello-py-failed-var
2. malformed header from script. Bad header
파이썬 파일 상단에 아래와 같이 입력
print ("Content-Type: text/plain\n\n")
관련 URL : http://blog.boyo.kr/entry/cgi-%EC%82%AC%EC%9A%A9%EC%8B%9C-%EC%97%90%EB%9F%AC-%EB%8C%80%EC%B2%98%EB%B2%95
3. UnicodeEncodeError: 'ascii' codec can't encode characters in position 16-17: ordinal not in range
댓글 없음:
댓글 쓰기