rexwashburn
1/23/2019 - 9:50 AM

日本語表示(Lolipop上)

#!/usr/local/bin/python3.4
# coding:utf-8
import sys

sys.stdin =  open(sys.stdin.fileno(),  'r', encoding='UTF-8')
sys.stdout = open(sys.stdout.fileno(), 'w', encoding='UTF-8')
sys.stderr = open(sys.stderr.fileno(), 'w', encoding='UTF-8')

print("Content-Type: text/html; charset=UTF-8\r\n")

print("<html><head><title>日本語タイトル</title></head><body>")
print("こんにちわ")
print("</body></html>")