Home > other >  Python is how to determine whether a file is opened?
Python is how to determine whether a file is opened?

Time:09-23

How to judge whether a file is opened, the thought of method of python exclusive way to open the file if it fails, then the file has been opened

Have completed the function of library

CodePudding user response:

That code didn't work last time?

CodePudding user response:

A bit of a problem under Windows run the file to open or not open will be submitted to the TURE

CodePudding user response:

Under Windows file is troublesome, TXT file, for example,

CodePudding user response:

Want to change the way and don't know use which data packets

CodePudding user response:

https://blog.csdn.net/weixin_33682719/article/details/85822599

Try this one

CodePudding user response:

https://blog.csdn.net/weixin_45903952/article/details/105121334

Look at this, just solve the problem

CodePudding user response:

OS. Path. Getatime ()
Try to get a recent visit to file time
  • Related