Python计时 [英] Python timing

查看:48
本文介绍了Python计时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何在python中编写一个程序来获取目录(源)并将该目录备份到另一个目录(目标目录)?我一直在努力,但我没有运气......任何帮助?

Would anyone know how to write a program in python that takes a directory (source) and backs up that directory into another directory (target directory)? I''ve been trying to work on it, but I have had no luck...any help?

推荐答案


有谁知道如何在python中编写一个程序来获取目录(源)并将该目录备份到另一个目录(目标目录)?我一直在努力,但我没有运气......有什么帮助吗?
Would anyone know how to write a program in python that takes a directory (source) and backs up that directory into another directory (target directory)? I''ve been trying to work on it, but I have had no luck...any help?



Python库模块'os'',''os.path''和''shutil''可用于完成此任务。这将让你顺利:

Python library modules ''os'', ''os.path'', and ''shutil'' can be used to accomplish this task. This will get you on the way:

展开 | 选择 < span class =codeDivider> | Wrap | 行号



Python库模块''os' ',''os.path''和''shutil''可用于完成此任务。这将让你顺利:
Python library modules ''os'', ''os.path'', and ''shutil'' can be used to accomplish this task. This will get you on the way:
展开 | 选择 < span class =codeDivider> | Wrap | 行号



谢谢,但我''我是python的新手,所以在这里我把目录放在要复制的地方,我把它复制到的目录放在哪里?
Thank you, but I''m new to python so where in this do i put the directory thats to be copied and where do i put the directory where its copied to?



而不是行:

Instead of the line:

展开 | 选择 | Wrap | 行号


这篇关于Python计时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆