Python学习笔记-基本语法

1.定义变量 a = 10 b = 20 c = a+b print(c) 没有var,没有int,没有更简单的定义方式了java 没有";",写上还会报错,print(c) 输出c的值,即30python 2.判断语句 # coding= utf-8 score = 90 if score > 90: print("很好") elif score > 60: print("OK
相关文章
相关标签/搜索