\n ^ \t的使用

\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?

posted @ 2016-12-17 04:38  橡皮头  阅读(530)  评论(0编辑  收藏  举报