Add doc string for touch

This commit is contained in:
xuzg 2017-12-06 20:26:16 +08:00
parent 28abb26de8
commit 1e731d58cc
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ def copy(src, dst, ignore_errors=False, follow_symlinks=True):
def touch(path):
"""
open a file as write,and then close it.
"""
with open(path, 'w'):
pass