^ 的使用

Posted 橡皮头

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了 ^ 的使用相关的知识,希望对你有一定的参考价值。

\n是换行符:

  使用时需要放在字符串里面,成为字符串的一部分(不要嫌乱,这是我之前犯的错误)。

  示例:

    >>>print("I am Guido \n what‘s yonr name?")

    >>>I am Guido

    >>>what‘s your name?

 

\t是制表符:

  使用时效果如下。

  示例:

    >>>print("I am Guido \n \t what‘s your name?")

    >>>I am Guido

    >>>     what‘s your name?

以上是关于 ^ 的使用的主要内容,如果未能解决你的问题,请参考以下文章