I am a new Python user and I don’t know some parts when I read the code. So I asked here.
cmd = u"sudo umount %(mountpoint)s >>%(log)s 2>&1"
I know what is %(word)used to replace the use of the last word, such as cmd % {'word':'new word'}, but I do not understand why trailing exists s. and I do not know the value of "u" at the beginning of the line.
source
share