- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 60字
- 2021-07-09 20:40:21
String inside the quotes
For printing a string, either a pair of single (' ') quotes or pair of double quotes (" ") can be used as shown in the succeeding examples:
print "Hello World 'Mr' Bond"
print 'old world "but" still good'
This gives the following results:
C:pydev>python hello.py
Hello World 'Mr' Bond
old world "but" still good
推薦閱讀
- Mastering Ext JS(Second Edition)
- Learning ROS for Robotics Programming(Second Edition)
- 機器學習系統:設計和實現
- JavaScript 從入門到項目實踐(超值版)
- Game Programming Using Qt Beginner's Guide
- Python Deep Learning
- Getting Started with PowerShell
- Servlet/JSP深入詳解
- Kotlin Standard Library Cookbook
- PySide GUI Application Development(Second Edition)
- 軟件品質之完美管理:實戰經典
- 匯編語言編程基礎:基于LoongArch
- UML2面向對象分析與設計(第2版)
- TypeScript 2.x By Example
- Python第三方庫開發應用實戰