Try this: import re re.sub(rb'\\([0-7]{3})', lambda match: bytes([int(match[1], 8)]), stringa.encode('ascii')).decode('utf-8'). Explanation:.
確定! 回上一頁