Suppose you have a string mystr that you want to fill with with spaces so it's 10 characters wide: >>> mystr = 'peter' >>> mystr.ljust(10) ...
確定! 回上一頁