摘要:一、算数运算符 1、加法运算符 + print(5 + 3) # + 还可以用作字符串的连接运算符 print('Hello' + 'World') 输出结果: 8 HelloWorld 2、减法运算符 - print(5 - 3) # - 还可以用作求负的运算符 x = 5 print(-x) 输
阅读全文
posted @ 2019-11-29 11:33
posted @ 2019-11-29 11:33
posted @ 2019-11-28 22:52
posted @ 2019-11-24 16:07