3 Star 0 Fork 0

gaorongze2009 / lingjian

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.py 300 Bytes
一键复制 编辑 原始数据 按行查看 历史
gaorongze2009 提交于 2022-05-23 09:18 . 99.py
# def apply_twice(func, arg):#高阶函数把函数作为参数调用或返回一个函数
# return func(func(arg))
# def add_five(x):
# return x + 5
# print(apply_twice(add_five, 10))
import re
pattern = r"test"
match = re.search(pattern,"test")
print(match.start())
print(match.end())
Python
1
https://gitee.com/gaorongze2009/lingjian.git
git@gitee.com:gaorongze2009/lingjian.git
gaorongze2009
lingjian
lingjian
master

搜索帮助