python中n是什么意义?
python中n的意义是new line即另起一行。“\n”代表换行,print出来一个新行。“\ ”这个标记示意是在编写程序中句子太长,工资换行后加上“\ ”,但print出来是一整行。
比方:
print "hello\nworld"
结果就是:
hello world
"\n"就是一个换行符。
以上就是python中n是什么意义?的细致内容,更多请关注ki4网别的相干文章!
python中n是什么意义?
python中n的意义是new line即另起一行。“\n”代表换行,print出来一个新行。“\ ”这个标记示意是在编写程序中句子太长,工资换行后加上“\ ”,但print出来是一整行。
比方:
print "hello\nworld"
结果就是:
hello world
"\n"就是一个换行符。
以上就是python中n是什么意义?的细致内容,更多请关注ki4网别的相干文章!