Python學(xué)習(xí)要點(diǎn):
1、基本數(shù)據(jù)類型
2、如何自定義數(shù)據(jù)結(jié)構(gòu)
3、if for while 語句
4、系統(tǒng)調(diào)用如何使用
5、多線程如何操作
一、python數(shù)據(jù)類型
1.1、字符串
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;
掃碼匿名提建議
直達(dá)CEO信箱