- go 语言从百度贴吧爬取邮箱 go 语言从百度贴吧爬取邮箱
- 推荐场景解决方案索引 推荐场景解决方案索引
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 装饰器 wraps保留函数的元信息from functools import wrapsdef func_old(f): def inner(*args,**kwargs): ... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 装饰器 wraps保留函数的元信息from functools import wrapsdef func_old(f): def inner(*args,**kwargs): ...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 collections 判断实例是否为可迭代对象或迭代器from collections.abc import Iterable# 可迭代对象中需要实现 __iter__ 或者 __geti... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 collections 判断实例是否为可迭代对象或迭代器from collections.abc import Iterable# 可迭代对象中需要实现 __iter__ 或者 __geti...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 pandas date_range 生成时间序列import pandas as pd# 生成时间序列pd.date_range('20210715',periods=30)Datetime... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 pandas date_range 生成时间序列import pandas as pd# 生成时间序列pd.date_range('20210715',periods=30)Datetime...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 search 返回第一个成功的匹配import repattern = re.compile(r"\d+")# 23 和 45 都符合pattern# 第一个成功匹配的是 23pattern... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 search 返回第一个成功的匹配import repattern = re.compile(r"\d+")# 23 和 45 都符合pattern# 第一个成功匹配的是 23pattern...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 re match 从起始位置开始匹配import re# 正则表达式 ww# 字符串 wwhello# 特征 从起始位置就开始匹配!re.match('ww','wwhello')<re.M... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 re match 从起始位置开始匹配import re# 正则表达式 ww# 字符串 wwhello# 特征 从起始位置就开始匹配!re.match('ww','wwhello')<re.M...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 this python之禅import thisThe Zen of Python, by Tim PetersBeautiful is better than ugly.Explicit ... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 this python之禅import thisThe Zen of Python, by Tim PetersBeautiful is better than ugly.Explicit ...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 scipy 读取wav文件from scipy.io import wavfile------------------------------------------------------... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 scipy 读取wav文件from scipy.io import wavfile------------------------------------------------------...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 opencv 读取图片import cv2--------------------------------------------------------------------------... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 opencv 读取图片import cv2--------------------------------------------------------------------------...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 获取python版本import syssys.version'3.7.6 (default, Jan 8 2020, 19:59:22) \n[GCC 7.3.0]' 默认编码格式sys... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 获取python版本import syssys.version'3.7.6 (default, Jan 8 2020, 19:59:22) \n[GCC 7.3.0]' 默认编码格式sys...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 给类添加不存在的方法,会影响到对象class Person: def __init__(self,name,age): self.name=name sel... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 给类添加不存在的方法,会影响到对象class Person: def __init__(self,name,age): self.name=name sel...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 sorted list中按照元素的绝对值进行排序# 原先1在-1之前,两数的abs值相同,在结果中 1 仍在 -1 之前# 相关的知识点,感兴趣的同学可以了解一下:算法稳定性sorted([... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 sorted list中按照元素的绝对值进行排序# 原先1在-1之前,两数的abs值相同,在结果中 1 仍在 -1 之前# 相关的知识点,感兴趣的同学可以了解一下:算法稳定性sorted([...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 高阶函数 传入参数是函数 自定义函数def add(num1,num2,fun): return fun(num1)+fun(num2)add(-1,1,abs)2add<functi... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 高阶函数 传入参数是函数 自定义函数def add(num1,num2,fun): return fun(num1)+fun(num2)add(-1,1,abs)2add<functi...
- 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 filter 去除list中的None 和 空字符串my_list= [1,2,3,"abc","",None,4,"QAQ",None,""]my_list[1, 2, 3, 'abc',... 环境信息ModelArtsNotebook - pytorch1.4-cuda10.1-cudnn7-ubuntu18.04JupyterLab - Notebook - Conda-python3 filter 去除list中的None 和 空字符串my_list= [1,2,3,"abc","",None,4,"QAQ",None,""]my_list[1, 2, 3, 'abc',...
上滑加载中
推荐直播
-
华为云码道Agent集成与鸿蒙实战2026/08/11 周二 19:00-21:00
王一男-华为云码道产品规划专家;李炎-华为云码道产品专家;彭江敏-华为云鸿蒙端云一体化开发专家
本次直播带你解读华为云码道7月份产品新特性、新功能。更有专家演示码道Agent Space × 钉钉机器集成实战,从0到1打通消息通道;码道鸿蒙端云一体化实战,快速搭建员工签到系统。
回顾中 -
华为云开发者AI素养直播课·第三期2026/08/21 周五 16:00-18:00
林华鼎-华为云AI开发者运营负责人;念擎-华为云AI开发者运营案例开发专家
本期直播内容:AI六层能力首次详细解读 + 新一代华为云开发者空间亮相 + 校园案例直播带练
回顾中
热门标签