摘要: 1.bool变量及运算print 1 + 1 == 2print 1 + 1 != 2print 1 + 1 == 2 and 1 + 1 == 3print 1 + 1 == 2 or 1 + 1 == 3print not 1 + 1 == 2print 1 in [1, 2, 3]输出:Tru... 阅读全文
posted @ 2015-04-10 23:50 SeaBrea 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1.打印: print “HelloWorld” (在3.0的版本里面试print()的形式)2.算术:除去基本的“+ — * / %” 外,还有“ // ** ”两种符号:“//”:是取商“**”:是阶乘3.Python的数字里面,可使用 float() ,int()... 阅读全文
posted @ 2015-04-10 23:48 SeaBrea 阅读(186) 评论(0) 推荐(0) 编辑