We'll see how to put a variable in regex using f-string in the following example: import re txt = "Hello Python" # My variable var = "Python" # Regex with ...
確定! 回上一頁