Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

Python| Pythonでファイルのコピー

概要

Pythonでファイルのコピー

内容

ファイルコピーのサンプルコードは以下。

サンプルコード

# -*- coding: utf-8 -*-
import shutil
shutil.copyfile("./base.txt", "./copy.txt")