• pythoncourse03

  • 发布时间:2016-01-13 11:38 | 作者:yc | 来源:互联网 | 浏览:1200 次
  • pythoncourse03

    >>> str="""you love me

    ... just as i love you

    ... just you love me

    ... """

    >>> str

    'you love me\njust as i love you \njust you love me\n'

    >>> print(str)

    you love me

    just as i love you

    just you love me

    >>> print("str")

    str

    >>> str1="C:\now"

    >>> str1

    'pythoncourse03帝一娱乐1950注册C:\now'

    >>> str2="love you"

    >>> str2

    'love you'

    >>> print(str1)

    C:

    ow

    >>> print(str2)

    love you

    >>> str3=r"C:\now"

    >>> str3

    'C:\\now'

    >>> print(str3)

    C:\now

    >>> str4="C:\\now"

    >>> str4

    'C:\\now'

    >>> print(str4)

    C:\now

    >>>

    you should note that in the python, the "" and '' are both eff买马十二生肖秘籍ective; and "variable" denotes the series, without the "" denotes the variable.

    这篇文章出自 “云淡风轻” 博客,请必须保存此出处http://htlbydgod.blog.51cto.com//

  • 相关内容

友情链接: