The code to rename a file in Python is shown below. import os os.rename('C:\\Users\\David\\file.txt', 'C:\\Users\\David\\file2.
確定! 回上一頁