复制并重命名文件 [英] copy and rename a file

查看:105
本文介绍了复制并重命名文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,

我有问题。我遇到了一个问题,我需要打开一个文件,然后复制并重命名它。我们仍在使用非常基本的命令,但我很遗憾。我知道如何打开文件并让python读取它。任何帮助都会很棒。

Hey,
I have a problem. I was presented a problem where I need to open a file and then copy and rename it. We are still using really basic commands, but I am pretty lost with this. I know how to open a file and get python to read it. Any help would be great.

推荐答案


嘿,

我有问题。我遇到了一个问题,我需要打开一个文件,然后复制并重命名它。我们仍在使用非常基本的命令,但我很遗憾。我知道如何打开文件并让python读取它。任何帮助都会很棒。
Hey,
I have a problem. I was presented a problem where I need to open a file and then copy and rename it. We are still using really basic commands, but I am pretty lost with this. I know how to open a file and get python to read it. Any help would be great.

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


展开 | 选择 | Wrap | 行号


没关系,我搞定了,但是我不知道如何把它写成.txt而不是文件。


************************************* ************* ******************
Nevermind, I got it working, but I can''t figure out how to write it as a .txt instead of a file.

************************************************** ******************
展开 | 选择 | 换行 | 行号


这篇关于复制并重命名文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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