学习Python第一天记录
赋值运算# 赋值运算# += -= *= \= %= **=a,b,c,d=23,18,10,3# a+=c# print(a)a**=2print(a)逻辑运算符# 逻辑运算符 and or not# and 条件比较严格# 定义四个变量a,b,c,d=23,18,10,3print(a + b > c and c < d)print(c > d and a > b)输入和输出# 输出 %占位符name = '张洋'classPro = '青
原创
2020-10-29 18:16:47 ·
191 阅读 ·
0 评论