Discuss / Python / 请问 (P|p)ython 用到了()也是分组吗

请问 (P|p)ython 用到了()也是分组吗

Topic source

Victor0_0Li

#1 Created at ... [Delete] [Delete and Lock User]

请教两个问题:

1、请问-之前为什么不加\转义也可以?是因为两侧分组了吗  【编译】中的代码:# 编译: >>> re_telephone = re.compile(r'^(\d{3})-(\d{3,8})$')  

2、(P|p)ython  用到了()也是分组吗


  • 1

Reply