- 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
推薦閱讀
- The Modern C++ Challenge
- 零起步玩轉掌控板與Mind+
- Vue.js入門與商城開發實戰
- SQL for Data Analytics
- Flash CS6中文版應用教程(第三版)
- ASP.NET 3.5程序設計與項目實踐
- Spring+Spring MVC+MyBatis整合開發實戰
- PHP從入門到精通(第4版)(軟件開發視頻大講堂)
- Java程序設計案例教程
- 智能手機故障檢測與維修從入門到精通
- .NET 4.0面向對象編程漫談:應用篇
- Hands-On Robotics Programming with C++
- jQuery從入門到精通(微課精編版)
- Offer來了:Java面試核心知識點精講(框架篇)
- JavaWeb從入門到精通(視頻實戰版)