摘要:
一个有序的元素组成的集合 使用小括号()表示 元组是不可变对象 定义 tuple() → empty tuple tuple(iterable) → tuple initialized from iterables's items t = tuple() t = () t = tuple(range 阅读全文
posted @ 2020-06-07 15:08
klvchen
阅读(184)
评论(0)
推荐(0)
摘要:
单分支结构 if condition: 代码块 condition 必须是一个 bool 类型,这个地方有一个隐式转换 bool(condition) if 1<2: print('1 less than 2') while 语句 while condition: block 当条件满足即 cond 阅读全文
posted @ 2020-06-07 10:59
klvchen
阅读(500)
评论(0)
推荐(0)

浙公网安备 33010602011771号