码迷,mamicode.com
首页 > 编程语言 > 详细

python学习路程

时间:2018-09-07 14:03:51      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:制表符   ips   started   一个   tar   nbsp   free   was   转义字符   

常用的转义字符还有:

\n 表示换行
\t 表示一个制表符
\\ 表示 \ 字符本身

任务

请将下面两行内容用Python的字符串表示并打印出来:

  Python was started in 1989 by "Guido".

  Python is free and easy to learn.

 

脚本实现:

s = ‘Python was started in 1989 by \"Guido\".\n Python is free and easy to learn .‘
print s

技术分享图片

 

python学习路程

标签:制表符   ips   started   一个   tar   nbsp   free   was   转义字符   

原文地址:https://www.cnblogs.com/jtestroad/p/9603653.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!