Python renames files

import os

srcFile ='./actwork/linkFile/allExtLinks -Copy.txt'
dstFile ='./actwork/linkFile/allExtLinks - copy.txt'try:
 os.rename(srcFile,dstFile)
except Exception as e:print(e)print('rename file fail\r\n')else:print('rename file success\r\n')

***Undertake programming in Matlab, Python and C++, machine learning, computer vision theory implementation and guidance, both undergraduate and master's degree, salted fish trading, professional answers please go to know, please contact QQ number 757160542, if you are the one ***

Recommended Posts

Python renames files
Python analysis of wav files
Python reads files by line
python batch run py files
3 ways to encrypt Python files
python ftp upload files and folders
Talking about php calling python files
How does Python generate xml files
Python reads and writes json files
Python CookBook
Python FAQ
Python3 module
How to delete cache files in python
python (you-get)
Python string
How to save text files in python
Python basics
Python basics 2
Python exec
Python notes
Python3 tuple
CentOS + Python3.6+
Python advanced (1)
Python decorator
Python multithreading
Python toolchain
Python3 list
Python multitasking-coroutine
Python overview
python introduction
Python analytic
Python basics
07. Python3 functions
Python basics 3
Python multitasking-threads
Pcm format extraction from python audio files
Python functions
python sys.stdout
Python example method to open music files
python operator
Python entry-3
Centos 7.5 python3.6
Python string
python queue Queue
Python basics 4
Python basics 5
How to delete files and directories in python
Implementation of Python headless crawler to download files
How to read and write files with Python
How does Python store data to json files
Python generates the dependent files required for the project