Python酷库之旅-第三方库Pandas(123)

目录

一、用法精讲

546、pandas.DataFrame.ffill方法

546-1、语法

546-2、参数

546-3、功能

546-4、返回值

546-5、说明

546-6、用法

546-6-1、数据准备

546-6-2、代码示例

546-6-3、结果输出

547、pandas.DataFrame.fillna方法

547-1、语法

547-2、参数

547-3、功能

547-4、返回值

547-5、说明

547-6、用法

547-6-1、数据准备

547-6-2、代码示例

547-6-3、结果输出

548、pandas.DataFrame.interpolate方法

548-1、语法

548-2、参数

548-3、功能

548-4、返回值

548-5、说明

548-6、用法

548-6-1、数据准备

548-6-2、代码示例

548-6-3、结果输出

549、pandas.DataFrame.isna方法

549-1、语法

549-2、参数

549-3、功能

549-4、返回值

549-5、说明

549-6、用法

549-6-1、数据准备

549-6-2、代码示例

549-6-3、结果输出

550、pandas.DataFrame.isnull方法

550-1、语法

550-2、参数

550-3、功能

550-4、返回值

550-5、说明

550-6、用法

550-6-1、数据准备

550-6-2、代码示例

550-6-3、结果输出

二、推荐阅读

1、Python筑基之旅

2、Python函数之旅

3、Python算法之旅

4、Python魔法之旅

5、博客个人主页

一、用法精讲

546、pandas.DataFrame.ffill方法
546-1、语法
# 546、pandas.DataFrame.ffill方法
pandas.DataFrame.ffill(*, axis=None, inplace=False, limit=None, limit_area=None, downcast=_NoDefault.no_default)
Fill NA/NaN values by propagating the last valid observation to next valid.

Parameters:
axis{0 or ‘index’} for Series, {0 or ‘index’, 1 or ‘columns’} for DataFrame
Axis along which to fill missing values. For Series this parameter is unused and defaults to 0.

inplacebool, default False
If True, fill in-place. Note: this will modify any other views on this object (e.g., a no-copy slice for a column in a DataFrame).

limitint, default None
If method is specified, this is the maximum number of consecutive NaN values to forward/backward fill. In other words, if there is a gap with more than this number of consecutive NaNs, it will only be partially filled. If method is not specified, this is the maximum number of entries along the entire axis where NaNs will be filled. Must be greater than 0 if not None.

limit_area{None, ‘inside’, ‘outside’}, default None
If limit is specified, consecutive NaNs will be filled with this restriction.

None: No fill restriction.

‘inside’: Only fill NaNs surrounded by valid values (interpolate).

‘outside’: Only fill NaNs outside valid values (extrapolate).

New in version 2.2.0.

downcastdict, default is None
A dict of item->dtype of what to downcast if possible, or the string ‘infer’ which will try to downcast to an appropriate equal type (e.g. float64 to int64 if possible).

Deprecated since version 2.2.0.

Returns:
Series/DataFrame or None
Object with missing values filled or None if inplace=True.
546-2、参数

546-2-1、axis(可选,默认值为None){0或'index',1或'columns'},确定填充操作的方向,0或'index'表示沿着行(向下填充),1或'columns'表示沿着列(向右填充),如果为None,则会根据轴的方向自动选择。

546-2-2、inplace(可选,默认值为False)布尔值,是否在原地修改DataFrame,如果为True,操作将在原始DataFrame上进行,而不会返回新的DataFrame;如果为False,则返回一个新的DataFrame,原始DataFrame不变。

546-2-3、limit(可选,默认值为None)整数,指定最大填充数量,填充过程将限制为最多填充limit个缺失值。

546-2-4、limit_area(可选,默认值为None)None或类似于DataFrame的对象,指定一个区域,该区域内的缺失值才会被填充,如果指定,将仅在这个区域内执行前向填充。

546-2-5、downcast(可选){'int', 'float', 'string', 'boolean'}或None,指定数据类型的向下转型,若指定此参数,则会尝试将数据转换为更小的数据类型,前提是数据类型允许。

546-3、功能

        用前一个有效值填充缺失值,在许多数据处理和分析应用中,缺失值是常见的问题,前向填充可以帮助将数据完整化,便于后续分析。

546-4、返回值

        返回值是一个填充后的DataFrame,如果inplace=True,则返回值为None,原始DataFrame被直接修改。

546-5、说明

        无

546-6、用法
546-6-1、数据准备
546-6-2、代码示例
# 546、pandas.DataFrame.ffill方法
import pandas as pd
import numpy as np
# 创建一个示例DataFrame
df = pd.DataFrame({
    'A': [1, np.nan, 3],
    'B': [np.nan, 2, np.nan],
    'C': [1, 2, 3]
})
# 使用前向填充
filled_df = df.ffill()
print(filled_df)
546-6-3、结果输出
# 546、pandas.DataFrame.ffill方法
#      A    B  C
# 0  1.0  NaN  1
# 1  1.0  2.0  2
# 2  3.0  2.0  3
547、pandas.DataFrame.fillna方法
547-1、语法
# 547、pandas.DataFrame.fillna方法
pandas.DataFrame.fillna(value=None, *, method=None, axis=None, inplace=False, limit=None, downcast=_NoDefault.no_default)
Fill NA/NaN values using the specified method.

Parameters:
valuescalar, dict, Series, or DataFrame
Value to use to fill holes (e.g. 0), alternately a dict/Series/DataFrame of values specifying which value to use for each index (for a Series) or column (for a DataFrame). Values not in the dict/Series/DataFrame will not be filled. This value cannot be a list.

method{‘backfill’, ‘bfill’, ‘ffill’, None}, default None
Method to use for filling holes in reindexed Series:

ffill: propagate last valid observation forward to next valid.

backfill / bfill: use next valid observation to fill gap.

Deprecated since version 2.1.0: Use ffill or bfill instead.

axis{0 or ‘index’} for Series, {0 or ‘index’, 1 or ‘columns’} for DataFrame
Axis along which to fill missing values. For Series this parameter is unused and defaults to 0.

inplacebool, default False
If True, fill in-place. Note: this will modify any other views on this object (e.g., a no-copy slice for a column in a DataFrame).

limitint, default None
If method is specified, this is the maximum number of consecutive NaN values to forward/backward fill. In other words, if there is a gap with more than this number of consecutive NaNs, it will only be partially filled. If method is not specified, this is the maximum number of entries along the entire axis where NaNs will be filled. Must be greater than 0 if not None.

downcastdict, default is None
A dict of item->dtype of what to downcast if possible, or the string ‘infer’ which will try to downcast to an appropriate equal type (e.g. float64 to int64 if possible).

Deprecated since version 2.2.0.

Returns:
Series/DataFrame or None
Object with missing values filled or None if inplace=True.
547-2、参数

547-2-1、value(可选,默认值为None)scalar, dict, Series或 DataFrame,指定填充缺失值的值,可以是单个值、一组值(字典或Series)或另一个DataFrame,如果为None,则需要同时指定method。

547-2-2、method(可选,默认值为None){'backfill','bfill','pad','ffill'},用于指定填充缺失值的方法:

  • pad或ffill:前向填充,使用前一个有效值填充。
  • backfill或bfill:后向填充,使用后一个有效值填充。

547-2-3、axis(可选,默认值为None){0或'index',1或'columns'},确定填充操作的方向,0或'index'表示沿着行(纵向填充),1或'columns'表示沿着列(横向填充),如果为None,则根据数据的形状自动选择。

547-2-4、inplace(可选,默认值为False)布尔值,是否在原地修改DataFrame,如果为True,填充将在原始DataFrame上完成,并返回None;如果为False,则返回一个新的DataFrame,原始DataFrame保持不变。

547-2-5、limit(可选,默认值为None)整数,指定在填充操作中最多填充的缺失值数量,这适用于前向或后向填充方法。

547-2-6、downcast(可选){'int','float','string','boolean'}或None,指定数据类型的向下转型,若是否将填充后的数据转换为更小的数据类型,前提是数据类型允许。

547-3、功能

        用指定的值或方法替代缺失值,在数据处理中,缺失值常常需要被合理填充,以便进一步分析和建模。

547-4、返回值

        返回值是一个填充后的DataFrame,如果inplace=True,则返回值为None,原始DataFrame会被直接修改。

547-5、说明

        无

547-6、用法
547-6-1、数据准备
547-6-2、代码示例
# 547、pandas.DataFrame.fillna方法
import pandas as pd
import numpy as np
# 创建一个示例DataFrame
df = pd.DataFrame({
    'A': [1, np.nan, 3],
    'B': [np.nan, 2, np.nan],
    'C': [1, 2, 3]
})
# 使用填充指定值
filled_df1 = df.fillna(value=0)
# 使用前向填充
filled_df2 = df.fillna(method='ffill')
print("使用指定值填充:")
print(filled_df1)
print("\n使用前向填充:")
print(filled_df2)
547-6-3、结果输出
# 547、pandas.DataFrame.fillna方法
# 使用指定值填充:
#      A    B  C
# 0  1.0  0.0  1
# 1  0.0  2.0  2
# 2  3.0  0.0  3
# 
# 使用前向填充:
#      A    B  C
# 0  1.0  NaN  1
# 1  1.0  2.0  2
# 2  3.0  2.0  3
548、pandas.DataFrame.interpolate方法
548-1、语法
# 548、pandas.DataFrame.interpolate方法
pandas.DataFrame.interpolate(method='linear', *, axis=0, limit=None, inplace=False, limit_direction=None, limit_area=None, downcast=_NoDefault.no_default, **kwargs)
Fill NaN values using an interpolation method.

Please note that only method='linear' is supported for DataFrame/Series with a MultiIndex.

Parameters:
methodstr, default ‘linear’
Interpolation technique to use. One of:

‘linear’: Ignore the index and treat the values as equally spaced. This is the only method supported on MultiIndexes.

‘time’: Works on daily and higher resolution data to interpolate given length of interval.

‘index’, ‘values’: use the actual numerical values of the index.

‘pad’: Fill in NaNs using existing values.

‘nearest’, ‘zero’, ‘slinear’, ‘quadratic’, ‘cubic’, ‘barycentric’, ‘polynomial’: Passed to scipy.interpolate.interp1d, whereas ‘spline’ is passed to scipy.interpolate.UnivariateSpline. These methods use the numerical values of the index. Both ‘polynomial’ and ‘spline’ require that you also specify an order (int), e.g. df.interpolate(method='polynomial', order=5). Note that, slinear method in Pandas refers to the Scipy first order spline instead of Pandas first order spline.

‘krogh’, ‘piecewise_polynomial’, ‘spline’, ‘pchip’, ‘akima’, ‘cubicspline’: Wrappers around the SciPy interpolation methods of similar names. See Notes.

‘from_derivatives’: Refers to scipy.interpolate.BPoly.from_derivatives.

axis{{0 or ‘index’, 1 or ‘columns’, None}}, default None
Axis to interpolate along. For Series this parameter is unused and defaults to 0.

limitint, optional
Maximum number of consecutive NaNs to fill. Must be greater than 0.

inplacebool, default False
Update the data in place if possible.

limit_direction{{‘forward’, ‘backward’, ‘both’}}, Optional
Consecutive NaNs will be filled in this direction.

If limit is specified:
If ‘method’ is ‘pad’ or ‘ffill’, ‘limit_direction’ must be ‘forward’.

If ‘method’ is ‘backfill’ or ‘bfill’, ‘limit_direction’ must be ‘backwards’.

If ‘limit’ is not specified:
If ‘method’ is ‘backfill’ or ‘bfill’, the default is ‘backward’

else the default is ‘forward’

raises ValueError if
limit_direction
is ‘forward’ or ‘both’ and
method is ‘backfill’ or ‘bfill’.

raises ValueError if
limit_direction
is ‘backward’ or ‘both’ and
method is ‘pad’ or ‘ffill’.

limit_area{{None, ‘inside’, ‘outside’}}, default None
If limit is specified, consecutive NaNs will be filled with this restriction.

None: No fill restriction.

‘inside’: Only fill NaNs surrounded by valid values (interpolate).

‘outside’: Only fill NaNs outside valid values (extrapolate).

downcastoptional, ‘infer’ or None, defaults to None
Downcast dtypes if possible.

Deprecated since version 2.1.0.

``**kwargs``optional
Keyword arguments to pass on to the interpolating function.

Returns:
Series or DataFrame or None
Returns the same object type as the caller, interpolated at some or all NaN values or None if inplace=True.
548-2、参数

548-2-1、method(可选,默认值为'linear')字符串,指定插值的方法,常用的方法包括:

  • 'linear':线性插值(默认)。
  • 'time':时间序列插值,仅适用于索引为时间戳的情况下。
  • 'index':根据索引值进行插值。
  • 其他插值方法如'nearest'、'polynomial'、'spline'等。

548-2-2、axis(可选,默认值为0){0或'index',1或'columns'},指定插值操作的方向,0或'index'表示沿着行进行插值,1或'columns'表示沿着列进行插值。

548-2-3、limit(可选,默认值为None)整数,指定在插值操作中最多插值的缺失值数量,这可以限制插值的范围。

548-2-4、inplace(可选,默认值为False)布尔值,是否在原地修改DataFrame,如果为True,插值将在原始DataFrame上完成并返回None;如果为False,则返回一个新的DataFrame,原始DataFrame保持不变。

548-2-5、limit_direction(可选,默认值为None){None, 'forward', 'backward'},指定插值的方向,'forward'表示只执行向前填充,'backward'表示只执行向后填充,如果为None,默认为两者都可。

548-2-6、limit_area(可选,默认值为None){None, 'inside', 'outside', 'both'},指定插值的区域,'inside'表示仅在内侧插值,'outside'表示仅在外侧插值,'both'表示在两者范围内插值。

548-2-7、downcast(可选){'int','float','string','boolean'}或None,指定数据类型的向下转型,若是否将插值后的数据转换为更小的数据类型,前提是数据类型允许。

548-2-8、**kwargs(可选)其他额外的关键字参数,为后续扩展功能做预留。

548-3、功能

        填充缺失值,通过插值计算在已有数据点之间估算缺失值,这在处理时间序列数据或一般情况下的数据填充时非常有用,可以保持数据的连续性。

548-4、返回值

        返回值是一个填充后的DataFrame,如果inplace=True,则返回值为None,原始DataFrame会被直接修改。

548-5、说明

        无

548-6、用法
548-6-1、数据准备
548-6-2、代码示例
# 548、pandas.DataFrame.interpolate方法
import pandas as pd
import numpy as np
# 创建一个示例DataFrame
df = pd.DataFrame({
    'A': [1, np.nan, 3, np.nan, 5],
    'B': [np.nan, 2, 3, 4, 5]
})
# 使用线性插值填充缺失值
interpolated_df1 = df.interpolate(method='linear')
print("线性插值填充结果:")
print(interpolated_df1)
548-6-3、结果输出
# 548、pandas.DataFrame.interpolate方法
# 线性插值填充结果:
#      A    B
# 0  1.0  NaN
# 1  2.0  2.0
# 2  3.0  3.0
# 3  4.0  4.0
# 4  5.0  5.0
549、pandas.DataFrame.isna方法
549-1、语法
# 549、pandas.DataFrame.isna方法
pandas.DataFrame.isna()
Detect missing values.

Return a boolean same-sized object indicating if the values are NA. NA values, such as None or numpy.NaN, gets mapped to True values. Everything else gets mapped to False values. Characters such as empty strings '' or numpy.inf are not considered NA values (unless you set pandas.options.mode.use_inf_as_na = True).

Returns:
DataFrame
Mask of bool values for each element in DataFrame that indicates whether an element is an NA value.
549-2、参数

        无

549-3、功能

        返回一个布尔型的DataFrame,与原始DataFrame具有相同的形状,布尔值表示数据是否为缺失值,缺失值(NaN)会被标记为True,而非缺失值会被标记为False。

549-4、返回值

        返回一个与原始DataFrame形状相同的布尔型DataFrame,如果某个单元格的值为缺失(如NaN),对应的位置将为True,否则为False。

549-5、说明

        无

549-6、用法
549-6-1、数据准备
549-6-2、代码示例
# 549、pandas.DataFrame.isna方法
import pandas as pd
import numpy as np
# 创建一个示例DataFrame
df = pd.DataFrame({
    'A': [1, np.nan, 3],
    'B': [4, 5, np.nan],
    'C': [np.nan, np.nan, 9]
})
# 检测缺失值
na_df = df.isna()
print("缺失值检测结果:")
print(na_df)
549-6-3、结果输出
# 549、pandas.DataFrame.isna方法
# 缺失值检测结果:
#        A      B      C
# 0  False  False   True
# 1   True  False   True
# 2  False   True  False
550、pandas.DataFrame.isnull方法
550-1、语法
# 550、pandas.DataFrame.isnull方法
pandas.DataFrame.isnull()
DataFrame.isnull is an alias for DataFrame.isna.

Detect missing values.

Return a boolean same-sized object indicating if the values are NA. NA values, such as None or numpy.NaN, gets mapped to True values. Everything else gets mapped to False values. Characters such as empty strings '' or numpy.inf are not considered NA values (unless you set pandas.options.mode.use_inf_as_na = True).

Returns:
DataFrame
Mask of bool values for each element in DataFrame that indicates whether an element is an NA value.
550-2、参数

        无

550-3、功能

        返回一个与原始DataFrame同样形状的布尔型DataFrame,其中每个单元格指示该位置的值是否为缺失值,缺失值(NaN)将被标记为True,非缺失值将被标记为 False

550-4、返回值

        返回一个布尔型DataFrame,形状与原始DataFrame相同。

550-5、说明

        无

550-6、用法
550-6-1、数据准备
550-6-2、代码示例
# 550、pandas.DataFrame.isnull方法
import pandas as pd
import numpy as np
# 创建一个示例DataFrame
df = pd.DataFrame({
    'A': [1, np.nan, 3],
    'B': [4, 5, np.nan],
    'C': [np.nan, np.nan, 9]
})
# 检测缺失值
null_df = df.isnull()
print("缺失值检测结果:")
print(null_df)
550-6-3、结果输出
# 550、pandas.DataFrame.isnull方法
# 缺失值检测结果:
#        A      B      C
# 0  False  False   True
# 1   True  False   True
# 2  False   True  False

二、推荐阅读

1、Python筑基之旅
2、Python函数之旅
3、Python算法之旅
4、Python魔法之旅
5、博客个人主页

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/881396.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

AI+教育|拥抱AI智能科技,让课堂更生动高效

AI在教育领域的应用正逐渐成为现实,提供互动性强的学习体验,正在改变传统教育模式。AI不仅改变了传统的教学模式,还为教育提供了更多的可能性和解决方案。从个性化学习体验到自动化管理任务,AI正在全方位提升教育质量和效率。随着…

【OJ刷题】双指针问题6

这里是阿川的博客,祝您变得更强 ✨ 个人主页:在线OJ的阿川 💖文章专栏:OJ刷题入门到进阶 🌏代码仓库: 写在开头 现在您看到的是我的结论或想法,但在这背后凝结了大量的思考、经验和讨论 目录 1…

技术周总结 09.09~09.15周日(C# WinForm WPF 软件架构)

文章目录 一、09.09 周一1.1) 问题01: Windows桌面开发中,WPF和WinForm的区别和联系?联系:区别: 二、09.12 周四2.1)问题01:visual studio的相关快捷键有哪些?通用快捷键编辑导航调试窗口管理 2…

Python Selenium 自动化爬虫 + Charles Proxy 抓包

一、场景介绍 我们平常会遇到一些需要根据省、市、区查询信息的网站。 1、省市查询 比如这种,因为全国的省市比较多,手动查询工作量还是不小。 2、接口签名 有时候我们用python直接查询后台接口的话,会发现接口是加签名的。 而签名算法我…

细胞分裂检测系统源码分享

细胞分裂检测检测系统源码分享 [一条龙教学YOLOV8标注好的数据集一键训练_70全套改进创新点发刊_Web前端展示] 1.研究背景与意义 项目参考AAAI Association for the Advancement of Artificial Intelligence 项目来源AACV Association for the Advancement of Computer Vis…

计算机人工智能前沿进展-大语言模型方向-2024-09-20

计算机人工智能前沿进展-大语言模型方向-2024-09-20 1. Multimodal Fusion with LLMs for Engagement Prediction in Natural Conversation Authors: Cheng Charles Ma, Kevin Hyekang Joo, Alexandria K. Vail, Sunreeta Bhattacharya, Alvaro Fern’andez Garc’ia, Kailan…

[数据集][目标检测]智慧交通铁轨裂缝检测数据集VOC+YOLO格式4类别

数据集格式:Pascal VOC格式YOLO格式(不包含分割路径的txt文件,仅仅包含jpg图片以及对应的VOC格式xml文件和yolo格式txt文件) 图片数量(jpg文件个数):2709 标注数量(xml文件个数):2709 标注数量(txt文件个数):2709 标注…

独立站技能树/工具箱1.0 总纲篇丨出海笔记

正所谓要把一件事做到90分很难,但做到60分基本上照着SOP做到位都没问题,如果我们能把每件事都做到60分,那绝对比至少60%的人都强,除非你的对手不讲武德——那就是他很可能看了我这篇文章,不但每方面都超过及格线&#…

fiddler抓包06_抓取https请求(chrome)

课程大纲 首次安装Fiddler,抓https请求,除打开抓包功能(F12)还需要: ① Fiddler开启https抓包 ② Fiddler导出证书; ③ 浏览器导入证书。 否则,无法访问https网站(如下图&#xff0…

将sqlite3移植到arm开发板上:

一、下载源代码 sqlite3网址:https://www.sqlite.org/download.html 下载:sqlite-autoconf-3460100.tar.gz 二、解压 在Linux家目录下创建一个sqlite3文件夹,将压缩包复制到该文件夹下,再在该目录下打开一个终端,执行…

【Linux】简易日志系统

目录 一、概念 二、可变参数 三、日志系统 一、概念 一个正在运行的程序或系统就像一个哑巴,一旦开始运行我们很难知晓其内部的运行状态。 但有时在程序运行过程中,我们想知道其内部不同时刻的运行结果如何,这时一个日志系统可以有效的帮…

【路径规划】 红嘴蓝鹊优化器:一种用于2D/3D无人机路径规划和工程设计问题的新型元启发式算法

摘要 本文提出了一种新型元启发式算法——红嘴蓝鹊优化器(RBMO),用于解决2D和3D无人机路径规划以及复杂工程设计问题。RBMO灵感来源于红嘴蓝鹊的群体合作行为,包括搜索、追逐、捕猎和食物储藏。该算法通过模拟这些行为&#xff0…

prober found high clock drift,Linux服务器时间不能自动同步,导致服务器时间漂移解决办法。

文章目录 一、场景二、问题三、解决办法(一)给服务器添加访问网络能力(二)手动同步1. 检查有没有安装ntp2. 没有安装ntp则离线安装ntp2.1 下载安装包2.2 安装2.3 启动 ntp 3. 设置内部时钟源3.1 编辑/etc/ntp.conf3.1 重启ntp服务…

低代码平台后端搭建-阶段完结

前言 最近又要开始为跳槽做准备了,发现还是写博客学的效率高点,在总结其他技术栈之前准备先把这个专题小完结一波。在这一篇中我又试着添加了一些实际项目中可能会用到的功能点,用来验证这个平台的扩展性,以及总结一些学过的知识。…

【C++】关键字auto详解

🦄个人主页:小米里的大麦-CSDN博客 🎏所属专栏:C_小米里的大麦的博客-CSDN博客 🎁代码托管:C: 探索C编程精髓,打造高效代码仓库 (gitee.com) ⚙️操作环境:Visual Studio 2022 目录 一、前言 二、类型别名思考 三、auto简介 四…

python 运行其他命令行工具,实时打印输出内容

起因, 目的: python 运行一个命令,最简洁的写法是: import os # 转换视频格式。 cmd "ffmpeg -i a1.ts -c copy a1.mp4"os.system(cmd)问题: 如果上面的视频比较大,需要运行很长时间,那么感觉就像是卡住…

向日葵和这三款远程控制神器,让你轻松掌控一切!

向日葵远程控制,作为科技控们的最佳良伴,一定是我们居家、办公必备的神器啦!别看咱们工作、学习有时候烦得心都碎成了二八瓣,但有了向日葵远程控制,咱们的效率绝对能飞起来!今天,咱们就一起走进…

C++11 lambda表达式

前言 上几期我们介绍了类的新功能,右值引用、完美转发语法特性,本期继续介绍C11的新语法特性,即lambda表达式! 目录 前言 lambda表达式 lambda的引入 什么是lambda 表达式 lambda表达式的语法 捕捉列表说明 lambda的底层…

卡西欧相机SD卡格式化后数据恢复指南

在数字摄影时代,卡西欧相机以其卓越的性能和便携性成为了众多摄影爱好者的首选。然而,随着拍摄量的增加,SD卡中的数据管理变得尤为重要。不幸的是,有时我们可能会因为操作失误或系统故障而将SD卡格式化,导致珍贵的照片…

Linux笔记---简单指令

1. 使用的环境 博主使用的是华为云服务器xshell终端的方式学习的,因为据说这样的方式比较接近以后的工作环境。 其中云服务器安装的是Ubuntu操作系统(以Linux为内核,适合新手学习Linux的一个版本) 这里的云服务器不一定使用华为的,但是我在…