1.初学Python
对python初步有了了解,python的发展史,解释器(CPython,PyPy...)等
2.变量
1)name = 'name' #单双引号都可以
2)拼接字符串
name = "zthe".format("the name is {yourname}",yourname=name)
3.逻辑判断语句
if 条件:#冒号不能忘了
#要执行的代码
else:
#要执行的代码
4.循环语句
for .. in ..
while
1.初学Python
对python初步有了了解,python的发展史,解释器(CPython,PyPy...)等
2.变量
1)name = 'name' #单双引号都可以
2)拼接字符串
name = "zthe".format("the name is {yourname}",yourname=name)
3.逻辑判断语句
if 条件:#冒号不能忘了
#要执行的代码
else:
#要执行的代码
4.循环语句
for .. in ..
while