python关键字“with”用于什么?python关键字“with”用于什么?例子来自:http:/docs.python.org/教程/inputoutput.html>>> with open('/tmp/workfile', 'r') as f:... read_data = f.read()>>> f.closedTrue
添加回答
举报
0/150
提交
取消