头歌正则表达式入门-二

# 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)


版权声明:本文为dearlwy521原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。