- 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
推薦閱讀
- 計算機網絡
- Ext JS Data-driven Application Design
- The DevOps 2.4 Toolkit
- Learning Network Forensics
- Java Web開發(fā)詳解
- Learning jQuery(Fourth Edition)
- Kotlin極簡教程
- Scala編程實戰(zhàn)
- Drupal 8 Development:Beginner's Guide(Second Edition)
- MongoDB Administrator’s Guide
- Koa與Node.js開發(fā)實戰(zhàn)
- Java程序設計
- Learning NHibernate 4
- C語言從入門到精通(第5版)
- 流暢的Python