|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 ~风介~ 于 2015-10-27 14:27 编辑
function:
- Help on function copyfile in module shutil:
- copyfile(src, dst, *, follow_symlinks=True)
- Copy data from src to dst.
-
- If follow_symlinks is not set and src is a symbolic link, a new
- symlink will be created instead of copying the file it points to.
- (END)
复制代码 code:
- >>> from shutil import *
- >>> from glob import glob
- >>> print('Before:',glob('test.*'))
- Before: ['test.py']
- >>> copyfile('test.py','test.py.copy')
- 'test.py.copy'
- >>> print('Before:',glob('test.*'))
- Before: ['test.py', 'test.py.copy']
- >>>
复制代码
|
|