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 else3.list vs tuple
4.if __else
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 else3.list vs tuple
4.if __else
本文标题:python逻辑运算(if_else list)
本文链接:https://www.haomeiwen.com/subject/ulighxtx.html
网友评论