python运算符,,1.算数运算符650
python运算符,,1.算数运算符650
1.算数运算符
例子:
a=30
b=40
c=a+b
print(c)
2.关系运算符
例子:
a=30
b=40
print(a==b)
3.赋值运算符
例子:
a=30
b=40
b+=a
print(b
4.逻辑运算符
例子:
a=30
b=40
c=50
print(a>b or b<c)
print not(a>b and b<c)
python运算符
例子: a=30 b=40 c=a+b print(c) 2.关系运算符 650) this.wi"/>
1.算数运算符
例子:
a=30
b=40
c=a+b
print(c)
2.关系运算符
例子:
a=30
b=40
print(a==b)
3.赋值运算符
例子:
a=30
b=40
b+=a
print(b
4.逻辑运算符
例子:
a=30
b=40
c=50
print(a>b or b<c)
print not(a>b and b<c)
python运算符
评论关闭