代码块1
#This is a 'Code' Cell
print("This is code cell")
This is code cell
介绍:py基本语法,输出一句话
代码块2
# print statements
variable = "right in the strings!"
print(f"f strings allow you to embed variables {variable}")
f strings allow you to embed variables right in the strings!
介绍:
1.区别于C语言,python中变量不需要预申明 数据类型
2.变量的类型和值 在赋值时被初始化;
3.变量赋值(assignment)通过等号(’=’)来执行;
总结
第一周lab1实验简单介绍了python基本语法,和variable变量