import os
import time
source = [r'"C:\Users\Nvthvn Blvke\Desktop\Code"']
target_dir = ["C:\Backup"]
target = target_dir + os.sep +
Здесь поставим "str"
str(time.strftime("%Y%m%d%H%M%S")) + ".zip"
zip_command = "zip -qr {0} {1}".format(target, "".join(source))
if os.system(zip_command) == 0:
print("Backup successfully!")
else:
print("Oops, its not successfully!")