Python文件支持中文

Python文件如何支持中文,防止乱码:

# -*- coding: utf-8 -*-
或者:

# coding: utf-8

标签: 、面试
  • 回复
隐藏