0
点赞
收藏
分享

微信扫一扫

头歌正则表达式入门-二

暮晨夜雪 2022-05-03 阅读 98
python
# coding=utf-8

import re

input_str = input()

# 编写获取python和Python的正则,并存储到match_python变量中

########## Begin ##########
match_python=re.findall("[pP]ython",input_str)

########## End ##########

print(match_python)

举报

相关推荐

0 条评论