python關(guān)鍵字“with”用于什么?python關(guān)鍵字“with”用于什么?例子來(lái)自:http:/docs.python.org/教程/inputoutput.html>>> with open('/tmp/workfile', 'r') as f:... read_data = f.read()>>> f.closedTrue
添加回答
舉報(bào)
0/150
提交
取消