I’m a new user of Python, 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 that %(word) is used to replace the word latter use such as cmd % {'word':'new word'}, but I don’t down why there is a trailing s. and I don’t know the ‘u’ meaning at the beginning of the string.
umeans it is a unicode string.sstands for string.