Python学习要点:
1、基本数据类型
2、如何自定义数据结构
3、if for while 语句
4、系统调用如何使用
5、多线程如何操作
一、python数据类型
1.1、字符串
a、使用单引号(')
用单引号括起来表示字符串,例如:
str='this is string';
print str;
b、使用双引号(")
双引号中的字符串与单引号中的字符串用法完全相同,例如:
str="this is string";
print str;
c、使用三引号(''')
利用三引号,表示多行的字符串,可以在三引号中自由的使用单引号和双引号,例如:
str='''this is string
this is pythod string
this is string'''
print str;
扫码匿名提建议
直达CEO信箱