Skip to content

Instantly share code, notes, and snippets.

@KatagiriSo
Created October 22, 2020 11:29
Show Gist options
  • Save KatagiriSo/1b0f80d6eb1aaa6f2a0d34c6be44357e to your computer and use it in GitHub Desktop.
Save KatagiriSo/1b0f80d6eb1aaa6f2a0d34c6be44357e to your computer and use it in GitHub Desktop.
正規表現でおきかえ
import re
while True:
inp = str(input("input="))
ans = re.sub("[0-9]","9",inp)
print(ans)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment