python [Python]re.sub()で文字列の最後の文字を置換するには? re.sub()を使って文字列(string)の末尾の文字を置換する方法を紹介します。 pythonプログラミング・IT