性夜影院午夜看片,无码精品久久一区二区三区,婷婷成人丁香五月综合激情,校园春色 qvod,性调教室高h学校

Python面試真題 - 如何在Python中使用字符串

【Python面試真題】- 如何在Python中使用字符串

a、使用單引號(hào)(‘)

用單引號(hào)括起來表示字符串,例如:

str=’this is string’;
print str;

b、使用雙引號(hào)(“)
雙引號(hào)中的字符串與單引號(hào)中的字符串用法完全相同,例如:

str=”this is string”;
print str;

c、使用三引號(hào)(”’)
利用三引號(hào),表示多行的字符串,可以在三引號(hào)中自由的使用單引號(hào)和雙引號(hào),例如:

str=”’this is string
this is pythod string
this is string”’
print str;



相關(guān)新聞

歷經(jīng)多年發(fā)展,已成為國(guó)內(nèi)好評(píng)如潮的Linux云計(jì)算運(yùn)維、SRE、Devops、網(wǎng)絡(luò)安全、云原生、Go、Python開發(fā)專業(yè)人才培訓(xùn)機(jī)構(gòu)!