>>> 'spam eggs'  # single quotes
'spam eggs'
>>> 'doesn\'t' # use \' to escape the single quote...
"doesn't"
>>> "doesn't" # ...or use double quotes instead
"doesn't"
>>> '"Yes," they said.'
'"Yes," they said.'
>>> "\"Yes,\" they said."
'"Yes," they said.'
>>> '"Isn\'t," they said.'
'"Isn\'t," they said.'
>>> '"Isn\'t," they said.'
'"Isn\'t," they said.'
>>> print('"Isn\'t," they said.')
"Isn't," they said.
>>> s = 'First line.\nSecond line.' # \n means newline
>>> s # without print(), \n is included in the output
'First line.\nSecond line.'
>>> print(s) # with print(), \n produces a new line
First line.
Second line.

最新文章

  1. java类型占用字节数&类型转换
  2. 游戏世界之Unity3D的基础认识
  3. Ext.widget()作用是使用别名创建对象。
  4. C++设计模式——单例模式
  5. 【Stage3D学习笔记续】山寨Starling(一):从事件说起
  6. Swift 学习手记1,pod 的 类库使用
  7. 七种Prolog解释器/编译器
  8. Xcode5 创建模板和UIView 关联XIB
  9. HDU-4689 Derangement
  10. 递归回溯 UVa140 Bandwidth宽带
  11. Android hybrid App项目构建和部分基本开发问题
  12. 最大熵模型和EM算法
  13. Cocos2dx 代码中包含中文导致编译错误的问题解决方法
  14. CentOS下安装Git
  15. 如何去除Launcher默认的google search bar?
  16. U811.1接口EAI系列之六--物料上传--VB语言
  17. unity, 2d rope
  18. 杨恒说李的算法好-我问你听谁说的-龙哥说的(java中常见的List就2个)(list放入的是原子元素)
  19. ABORT: Can't find command 'my_print_defaults'.
  20. lykchat+zabbix实现微信告警

热门文章

  1. Java的Object.hashCode()的返回值到底是不是对象内存地址?
  2. 03.JMS深入
  3. 其他ip无法访问Yii的gii,配置ip就可以
  4. Intellij idea的Dependencies波浪线
  5. jQuery change事件
  6. Python3、Unicode、UTF-8、编码
  7. 【python】Python3 循环语句
  8. python 定义类 学习1
  9. 三个小时学会wordpress模板制作
  10. Openstack(十)部署nova服务(计算节点)