美文网首页
python2关于中文问题

python2关于中文问题

作者: 吴世浩 | 来源:发表于2017-06-17 15:32 被阅读10次

    一、好语

    万事从来风过耳,一生只是梦游身

    二、内容

    下雨天在家看看python基础哦,在pycharm上跑print打印中文,报错,其实看了知道需要引入,但是了发现引入还有技巧

    #!/usr/bin/env
    #author  = 'mahone'
    #coding=utf-8
    
    
    print("你好,世界")
    
    图片.png
    #!/usr/bin/env
    #coding=utf-8
    #author  = 'mahone'
    
    print("你好,世界")
    
    
    
    图片.png

    相关文章

      网友评论

          本文标题:python2关于中文问题

          本文链接:https://www.haomeiwen.com/subject/zixbqxtx.html