Home  >  Q&A  >  body text

python - with open as,没有文件存在,会不会新建一个?

巴扎黑巴扎黑2741 days ago827

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 16:58:53

    If it is opened in reading mode, it will not be created; if it is opened in writing mode, it will be created. Whether using with as has nothing to do with this~

    reply
    0
  • Cancelreply