美文网首页
笨方法学python-习题2-注释#

笨方法学python-习题2-注释#

作者: Demoary | 来源:发表于2017-02-11 09:59 被阅读0次

    习题2--#号注释

    #号的全称octothorpe或者pound character

    • Python #号使用练习

    python #号使用练习

    # -*- coding: utf-8 -*-
    # A comment, this is so you can read your program later.
    # Anything after the # is ignored by python.
    
    print "I could have code like this." # and the comment after is ignored
    
    # You can also use a comment to "disable" or comment out a piece of code:
    # print "This won't run."
    
    print "This will run.运行吧" #中文注释也是可以的
    

    相关文章

      网友评论

          本文标题:笨方法学python-习题2-注释#

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