Created
October 22, 2020 11:29
-
-
Save KatagiriSo/1b0f80d6eb1aaa6f2a0d34c6be44357e to your computer and use it in GitHub Desktop.
正規表現でおきかえ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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