Pythonã®æååç½®æã¯ãç½®æã®ä»æ¹ããã¼ã¸ã§ã³ã«ãã£ã¦å©ç¨ãã¹ãã¢ã¸ã¥ã¼ã«ãç°ãªã£ã¦ãããå°ããããã«ããã®ã§ãPython 2.xã§ã®strã¨unicodeã3.xã§ã®strã§ã®ç½®æãã¾ã¨ãã¾ãã æååã«ããåç´ãªç½®æ (str.replace) str (2.x) / unicode / str (3.x)ã®ã©ãã§ãã»ã¼åãã§ãã src = 'I like orange.' dst = src.replace('orange', 'apple') # 'I like apple.' str.replaceã®ç¬¬3å¼æ°ã§ç½®æãè¡ãæ大åæ°ãæå®ã§ãã¾ãã str.replace (2.x) str.replace (3.x) æ£è¦è¡¨ç¾ã«ããç½®æ (re.sub) str (2.x) / unicode / str (3.x)ã®ã©ãã§ãã»ã¼åãã§ãã import re src =
{{#tags}}- {{label}}
{{/tags}}