题解 | #表示数字#
表示数字
https://www.nowcoder.com/practice/637062df51674de8ba464e792d1a0ac6
import re
while True:
try:
print(re.sub('(\d+)', '*\g<1>*', input()))
# 这里注意\g<1>的用法还未掌握
except:
break
表示数字
https://www.nowcoder.com/practice/637062df51674de8ba464e792d1a0ac6
import re
while True:
try:
print(re.sub('(\d+)', '*\g<1>*', input()))
# 这里注意\g<1>的用法还未掌握
except:
break
相关推荐