FileCopy
这点主要是文件copy
old_file_name = input("please input the address of backup file")
old_file = open(old_file_name, 'r')
# str.rfind(str1) 将会返回str1在str里的位置(包括0)
position = old_file_name.rfind(".")
new_file_name = old_file_name[:position]+"copy"+old_file_name[position:]
# new_file_name = "copy".join((old_file_name[:position],old_file_name[position:])) 这样也可以ha
new_file = open(new_file_name, "w")
old_file.close()
new_file.close()