美文网首页
python逻辑运算(if_else list)

python逻辑运算(if_else list)

作者: 洛水青柳2017 | 来源:发表于2017-09-10 02:44 被阅读0次

1.打印输出  print('1024*768=',1024*768)  

                    print('I\'m\"ok\"!')

                     print(9/3)

                     print(10//3)

                     print(10%3)  

                    print(ord('A'))       #返回字符编码

                    print(ord('石'))

                    print(chr(78))       #返回编码对应的值

                    print(chr(234))

2.if……else……结构

if    else

3.list vs tuple

4.if __else

相关文章

网友评论

      本文标题:python逻辑运算(if_else list)

      本文链接:https://www.haomeiwen.com/subject/ulighxtx.html