- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 字符串
print(3 and 4)print(3 or 4)number=1print(number + 4 <=12 or number +4 - 12)a=3000print(id(a))b=-3000print(id(b))form sys import getrefcounta=[1,2,3]print(getrefcount(a))b=aprint(getrefcount(a))c=[a,a]print(getrefcount(a))del aprint(“a被销
2020-06-26 14:39:43
160
原创 列表元组字典
可变list1=[1,2,3]print(id(list1))list2=[1,2,3]print(id(list2))list3=list1+list2print(id(list3))print(list3*2)print(list1 is list2)print(list1 is not list2)字符串中的and 返回的后面值,or返回前面值并集 1为true,0为false1 and 1 true1 and 0 false0 and 0 flase0 and 1 f
2020-06-26 14:38:50
125
原创 python笔记
刘大坑python笔记print(3 and 4)print(3 or 4)number=1print(number + 4 <=12 or number +4 - 12)a=3000print(id(a))b=-3000print(id(b))form sys import getrefcounta=[1,2,3]print(getrefcount(a))b=aprint(getrefcount(a))c=[a,a]print(getrefcount(a))del
2020-06-12 09:17:02
403
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人