Skip to content

Instantly share code, notes, and snippets.

@import-yuefeng
Created October 1, 2018 01:33
Show Gist options
  • Save import-yuefeng/e70c711856d8b1b801215ce67c50211e to your computer and use it in GitHub Desktop.
Save import-yuefeng/e70c711856d8b1b801215ce67c50211e to your computer and use it in GitHub Desktop.
utf-8Encoding
# encoding:utf-8
import io
import sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf8')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment