Mathematica中文论坛-非官方

标题: python 加中文注释  [打印本页]

作者: meatball1982    时间: 2016-3-19 15:30
标题: python 加中文注释 
作为一个python的菜鸟,作点啥都会出错.平时,在vi中加个注释有中文.
在python  中就有问题了.
查了一下,编码的事儿.

# -*- coding: utf-8 -*-

加一句这个.妥.






欢迎光临 Mathematica中文论坛-非官方 (http://www.ilovemathematica.com/) Powered by Discuz! X3.2