python
文章平均质量分 61
SKnight_31
刚刚开始学习软件,请多指教
展开
-
python3 输出函数print的相关知识
基本形式:print('hello world!')--->hello world如果想在其中使用'而不被判定为结束或者开始的'需要加/,即 print ('hello/'world!')--->hello'world!如果想输出变量的值则需要引入{}和format:age=20name='charles'#双引号也可以,如果是多行的字符串则使用三个单/双引号#即'''...........原创 2018-07-15 16:45:01 · 1013 阅读 · 0 评论 -
python3运算符号优先级
lambda: Lambda Expressionif - else: Conditional expressionor: Boolean ORand: Boolean ANDnot x: Boolean NOTin, not in, is, is not, <, <=, >, >=, !=, ==: Comparisons, including membership te...转载 2018-07-15 20:27:01 · 539 阅读 · 0 评论