iT邦幫忙

with...as相關文章
共有 1 則文章

技術 不再忘記 close() 資源,認識 with...as

傳統的檔案存取try … catch … finally … : file = open("example.txt", "r&qu...