Created
May 5, 2014 02:37
-
-
Save wynnzen/651823a0779b64c13530 to your computer and use it in GitHub Desktop.
判断文件是否存在,并删除
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if os.path.exists("test.log"): | |
os.remove("test.log") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment