- 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
推薦閱讀
- Visual C++程序設(shè)計(jì)學(xué)習(xí)筆記
- Delphi程序設(shè)計(jì)基礎(chǔ):教程、實(shí)驗(yàn)、習(xí)題
- Android和PHP開(kāi)發(fā)最佳實(shí)踐(第2版)
- Mastering phpMyAdmin 3.4 for Effective MySQL Management
- Software Testing using Visual Studio 2012
- iOS開(kāi)發(fā)實(shí)戰(zhàn):從零基礎(chǔ)到App Store上架
- Internet of Things with Intel Galileo
- HTML5+CSS3網(wǎng)頁(yè)設(shè)計(jì)
- 程序是怎樣跑起來(lái)的(第3版)
- Mastering JBoss Enterprise Application Platform 7
- Hands-On Full Stack Development with Go
- SQL經(jīng)典實(shí)例(第2版)
- MySQL程序員面試筆試寶典
- Everyday Data Structures
- Orchestrating Docker