摘要:
alist=[2,5,32,34,11,44,65,113] print(alist[::])##取所有alist [2, 5, 32, 34, 11, 44, 65, 113] print(alist[::-1])##alist倒序 [113, 65, 44, 11, 34, 32, 5, 2] 阅读全文
posted @ 2024-01-17 15:14
howhy
阅读(14)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2024-01-17 13:44
howhy
阅读(6)
评论(0)
推荐(0)
摘要:
import contextlib class MyWith: def __enter__(self): print('enter') return self def doThing(self): print('do.....') def __exit__(self, exc_type, exc_v 阅读全文
posted @ 2024-01-17 12:00
howhy
阅读(9)
评论(0)
推荐(0)

浙公网安备 33010602011771号