Home>

I am a beginner. Thanks for your help. Move and change files

For linux

cmd = "mv a.txt b.txt"
        subprocess.call (cmd.split ())


If win

cmd = "move a.txt b.txt"
        subprocess.call (cmd.split ())


Is written. Writing separately every time
Please let me know if there is a file move/rename command that can be used in common with windows in linux.
Do python users use os.rename or shutilmove?