在Eclipse中使用注释中,用#是无效的。其实这个问题跟Eclipse+Python中不能使用中文一样。

只要在开头第一行加入#coding=utf-8就可以了

初学Python:Python+eclipse注释问题

初学Python:Python+eclipse注释问题

相关文章: