百度360必应搜狗淘宝本站头条
当前位置:网站首页 > IT知识 > 正文

10个Pandas的另类数据处理技巧(pandas数据处理案例)

liuian 2025-03-29 19:29 99 浏览

来源:DeepHub IMBA本文约2000字,建议阅读5分钟本文介绍了10个Pandas的常用技巧。


本文所整理的技巧与以前整理过10个Pandas的常用技巧不同,你可能并不会经常的使用它,但是有时候当你遇到一些非常棘手的问题时,这些技巧可以帮你快速解决一些不常见的问题。



1、Categorical类型


默认情况下,具有有限数量选项的列都会被分配object 类型。但是就内存来说并不是一个有效的选择。我们可以这些列建立索引,并仅使用对对象的引用而实际值。Pandas 提供了一种称为 Categorical的Dtype来解决这个问题。


例如一个带有图片路径的大型数据集组成。每行有三列:anchor, positive, and negative.。


如果类别列使用 Categorical 可以显着减少内存使用量。


 # raw data

 +----------+------------------------+

 |  class   |        filename        |

 +----------+------------------------+

 | Bathroom | Bathroom\bath_1.jpg    |

 | Bathroom | Bathroom\bath_100.jpg  |

 | Bathroom | Bathroom\bath_1003.jpg |

 | Bathroom | Bathroom\bath_1004.jpg |

 | Bathroom | Bathroom\bath_1005.jpg |

 +----------+------------------------+




 # target

 +------------------------+------------------------+----------------------------+

 |         anchor         |        positive        |          negative          |

 +------------------------+------------------------+----------------------------+

 | Bathroom\bath_1.jpg    | Bathroom\bath_100.jpg  | Dinning\din_540.jpg        |

 | Bathroom\bath_100.jpg  | Bathroom\bath_1003.jpg | Dinning\din_1593.jpg       |

 | Bathroom\bath_1003.jpg | Bathroom\bath_1004.jpg | Bedroom\bed_329.jpg        |

 | Bathroom\bath_1004.jpg | Bathroom\bath_1005.jpg | Livingroom\living_1030.jpg |

 | Bathroom\bath_1005.jpg | Bathroom\bath_1007.jpg | Bedroom\bed_1240.jpg       |

 +------------------------+------------------------+----------------------------+

filename列的值会经常被复制重复。因此,所以通过使用Categorical可以极大的减少内存使用量。


让我们读取目标数据集,看看内存的差异:


 triplets.info(memory_usage="deep")




 #   Column   Non-Null Count   Dtype  

 # --- ------   --------------   -----  

 # 0   anchor   525000 non-null category

 # 1   positive 525000 non-null category

 # 2   negative 525000 non-null category

 # dtypes: category(3)

 # memory usage: 4.6 MB




 # without categories

 triplets_raw.info(memory_usage="deep")




 #   Column   Non-Null Count   Dtype

 # --- ------   --------------   -----

 # 0   anchor   525000 non-null object

 # 1   positive 525000 non-null object

 # 2   negative 525000 non-null object

 # dtypes: object(3)

 # memory usage: 118.1 MB


差异非常大,并且随着重复次数的增加,差异呈非线性增长。


2、行列转换


sql中经常会遇到行列转换的问题,Pandas有时候也需要,让我们看看来自Kaggle比赛的数据集。census_start .csv文件:



可以看到,这些按年来保存的,如果有一个列year和pct_bb,并且每一行有相应的值,则会好得多,对吧。


 cols = sorted([col for col in original_df.columns \

               if col.startswith("pct_bb")])

 df = original_df[(["cfips"] + cols)]

 df = df.melt(id_vars="cfips",

              value_vars=cols,

              var_name="year",

              value_name="feature").sort_values(by=["cfips", "year"])


看看结果,这样是不是就好很多了:



3、apply()很慢


我们上次已经介绍过,最好不要使用这个方法,因为它遍历每行并调用指定的方法。但是要是我们没有别的选择,那还有没有办法提高速度呢?


可以使用swifter或pandarallew这样的包,使过程并行化。


Swifter

 import pandas as pd

 import swifter




 def target_function(row):

     return row * 10




 def traditional_way(data):

     data['out'] = data['in'].apply(target_function)




 def swifter_way(data):

     data['out'] = data['in'].swifter.apply(target_function)

Pandarallel


 import pandas as pd

 from pandarallel import pandarallel




 def target_function(row):

     return row * 10




 def traditional_way(data):

     data['out'] = data['in'].apply(target_function)




 def pandarallel_way(data):

     pandarallel.initialize()

     data['out'] = data['in'].parallel_apply(target_function)


通过多线程,可以提高计算的速度,当然当然,如果有集群,那么最好使用dask或pyspark。


4、空值,int, Int64


标准整型数据类型不支持空值,所以会自动转换为浮点数。所以如果数据要求在整数字段中使用空值,请考虑使用Int64数据类型,因为它会使用pandas.NA来表示空值。


5、Csv, 压缩还是parquet?


尽可能选择parquet。parquet会保留数据类型,在读取数据时就不需要指定dtypes。parquet文件默认已经使用了snappy进行压缩,所以占用的磁盘空间小。下面可以看看几个的对比:


 |        file            |  size   |

 +------------------------+---------+

 | triplets_525k.csv      | 38.4 MB |

 | triplets_525k.csv.gzip |  4.3 MB |

 | triplets_525k.csv.zip  |  4.5 MB |

 | triplets_525k.parquet  |  1.9 MB |

 +------------------------+---------+

读取parquet需要额外的包,比如pyarrow或fastparquet。chatgpt说pyarrow比fastparquet要快,但是我在小数据集上测试时fastparquet比pyarrow要快,但是这里建议使用pyarrow,因为pandas 2.0也是默认的使用这个。


6、value_counts ()


计算相对频率,包括获得绝对值、计数和除以总数是很复杂的,但是使用value_counts,可以更容易地完成这项任务,并且该方法提供了包含或排除空值的选项。


 df = pd.DataFrame({"a": [1, 2, None], "b": [4., 5.1, 14.02]})
 df["a"] = df["a"].astype("Int64")
 print(df.info())
 print(df["a"].value_counts(normalize=True, dropna=False),
      df["a"].value_counts(normalize=True, dropna=True), sep="\n\n")


这样是不是就简单很多了。


7、Modin


注意:Modin现在还在测试阶段。


pandas是单线程的,但Modin可以通过缩放pandas来加快工作流程,它在较大的数据集上工作得特别好,因为在这些数据集上,pandas会变得非常缓慢或内存占用过大导致OOM。


 !pip install modin[all]




 import modin.pandas as pd

 df = pd.read_csv("my_dataset.csv")


以下是modin官网的架构图,有兴趣的研究把:

8、extract()


如果经常遇到复杂的半结构化的数据,并且需要从中分离出单独的列,那么可以使用这个方法:


 import pandas as pd




 regex = (r'(?P[A-Za-z\'\s]+),'

          r'(?P<author>[A-Za-z\s\']+),'

          r'(?P<isbn>[\d-]+),'

          r'(?P<year>\d{4}),'

          r'(?P<publisher>.+)')

 addr = pd.Series([

     "The Lost City of Amara,Olivia Garcia,978-1-234567-89-0,2023,HarperCollins",

     "The Alchemist's Daughter,Maxwell Greene,978-0-987654-32-1,2022,Penguin Random House",

     "The Last Voyage of the HMS Endeavour,Jessica Kim,978-5-432109-87-6,2021,Simon & Schuster",

     "The Ghosts of Summer House,Isabella Lee,978-3-456789-12-3,2000,Macmillan Publishers",

     "The Secret of the Blackthorn Manor,Emma Chen,978-9-876543-21-0,2023,Random House Children's Books"

  ])

 addr.str.extract(regex)</code></pre><p data-track="82" class="syl-page-br" style><br></p><p data-track="83" class="syl-page-br syl-page-br-hide" style><br></p><h1 class="pgc-h-arrow-right" data-track="84">9、读写剪贴板</h1><p data-track="85" class="syl-page-br" style><br></p><p data-track="86"><span style="letter-spacing: 1px;"><span style="color: #000000; --tt-darkmode-color: #A3A3A3;">这个技巧有人一次也用不到,但是有人可能就是需要,比如:在分析中包含PDF文件中的表格时。通常的方法是复制数据,粘贴到Excel中,导出到csv文件中,然后导入Pandas。但是,这里有一个更简单的解决方案:pd.read_clipboard()。我们所需要做的就是复制所需的数据并执行一个方法。</span></span></p><p data-track="87" class="syl-page-br" style><br></p><p data-track="88"><span style="letter-spacing: 1px;"><span style="color: #000000; --tt-darkmode-color: #A3A3A3;">有读就可以写,所以还可以使用to_clipboard()方法导出到剪贴板。</span></span></p><p data-track="89" class="syl-page-br" style><br></p><p data-track="90"><span style="letter-spacing: 1px;"><span style="color: #000000; --tt-darkmode-color: #A3A3A3;">但是要记住,这里的剪贴板是你运行python/jupyter主机的剪切板,并不可能跨主机粘贴,一定不要搞混了。</span></span></p><p data-track="91" class="syl-page-br" style><br></p><h1 class="pgc-h-arrow-right" data-track="92">10、数组列分成多列</h1><p data-track="93" class="syl-page-br" style><br></p><p data-track="94"><span style="letter-spacing: 1px;"><span style="color: #000000; --tt-darkmode-color: #A3A3A3;">假设我们有这样一个数据集,这是一个相当典型的情况:</span></span></p><p data-track="95" class="syl-page-br" style><br></p><pre class="prism-highlight prism-language-bash" class="syl-page-code"><code> import pandas as pd
 df = pd.DataFrame({"a": [1, 2, 3],
              "b": [4, 5, 6],
              "category": [["foo", "bar"], ["foo"], ["qux"]]})


 # let's increase the number of rows in a dataframe
 df = pd.concat([df]*10000, ignore_index=True)</code></pre><p data-track="97" class="syl-page-br" style><br></p><p data-track="98" class="syl-page-br syl-page-br-hide" style><br></p><p data-track="99"><span style="letter-spacing: 1px;"><span style="color: #000000; --tt-darkmode-color: #A3A3A3;">我们想将category分成多列显示,例如下面的</span></span></p><p data-track="100" class="syl-page-br syl-page-br-hide" style><br></p><p data-track="101" class="syl-page-br syl-page-br-hide" style><br></p><p data-track="102"><span style="letter-spacing: 1px;"><span style="color: #000000; --tt-darkmode-color: #A3A3A3;">先看看最慢的apply:</span></span></p><p data-track="103" class="syl-page-br" style><br></p><pre class="prism-highlight prism-language-bash" class="syl-page-code"><code> def dummies_series_apply(df):

    return df.join(df['category'].apply(pd.Series) \

                                  .stack() \

                                  .str.get_dummies() \

                                  .groupby(level=0) \

                                  .sum()) \

              .drop("category", axis=1)

 %timeit dummies_series_apply(df.copy())

 #5.96 s ± 66.6 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
</code></pre><p data-track="105"><span style="letter-spacing: 1px;"><strong><span style="color: #000000; --tt-darkmode-color: #A3A3A3;">sklearn的MultiLabelBinarizer</span></strong></span></p><p data-track="106" class="syl-page-br" style><br></p><pre class="prism-highlight prism-language-bash" class="syl-page-code"><code> from sklearn.preprocessing import MultiLabelBinarizer

 def sklearn_mlb(df):

    mlb = MultiLabelBinarizer()

    return df.join(pd.DataFrame(mlb.fit_transform(df['category']), columns=mlb.classes_)) \

              .drop("category", axis=1)

 %timeit sklearn_mlb(df.copy())

 #35.1 ms ± 1.31 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
</code></pre><p data-track="108" class="syl-page-br" style><br></p><p data-track="109"><span style="letter-spacing: 1px;"><span style="color: #000000; --tt-darkmode-color: #A3A3A3;">是不是快了很多,我们还可以使用一般的向量化操作对其求和:</span></span></p><p data-track="110" class="syl-page-br" style><br></p><pre class="prism-highlight prism-language-bash" class="syl-page-code"><code> def dummies_vectorized(df):

    return pd.get_dummies(df.explode("category"), prefix="cat") \

              .groupby(["a", "b"]) \

              .sum() \

              .reset_index()

 %timeit dummies_vectorized(df.copy())

 #29.3 ms ± 1.22 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)
</code></pre><p data-track="112" class="syl-page-br" style><br></p><p data-track="113" class="syl-page-br syl-page-br-hide" style><br></p><p data-track="114"><span style="letter-spacing: 1px;"><span style="color: #000000; --tt-darkmode-color: #A3A3A3;">使用第一个方法(在StackOverflow上的回答中非常常见)会给出一个非常慢的结果。而其他两个优化的方法的时间是非常快速的。</span></span></p><p data-track="115" class="syl-page-br" style><br></p><h1 class="pgc-h-arrow-right" data-track="116">总结</h1><p data-track="117" class="syl-page-br" style><br></p><p data-track="118"><span style="letter-spacing: 1px;"><span style="color: #000000; --tt-darkmode-color: #A3A3A3;">我希望每个人都能从这些技巧中学到一些新的东西。重要的是要记住尽可能使用向量化操作而不是apply()。此外,除了csv之外,还有其他有趣的存储数据集的方法。不要忘记使用分类数据类型,它可以节省大量内存。感谢阅读!</span></span></p></div>

<div class="clearfix mb10">
        <div class="share fr">
        <div class="social-share mb20 ta-c" data-initialized="true">
            <a href="#" class="social-share-icon iconfont icon-weibo"></a>
            <a href="#" class="social-share-icon iconfont icon-qq"></a>
            <a href="#" class="social-share-icon iconfont icon-wechat"></a>
            <a href="#" class="social-share-icon iconfont icon-qzone"></a>
        </div>
        <script src="http://www.liulianxun.com/zb_users/theme/tx_hao/script/social-share.min.js"></script>
    </div>
    
        <div class="info-tag">
        <a href="http://www.liulianxun.com/tags-167.html" title="查看更多snappy压缩内容" rel="tag" target="_blank">snappy压缩</a>    </div>
    </div>



<div class="info-next">
    <ul class="row">
        <li class="col-12 col-m-24 mb10">上一篇:<a href="http://www.liulianxun.com/post/3329.html" title="Redisson的11个应用场景(redis各种类型的应用场景)">Redisson的11个应用场景(redis各种类型的应用场景)</a></li>
        <li class="col-12 col-m-24 ta-r mb10">下一篇:<a href="http://www.liulianxun.com/post/3331.html" title="5 分钟快速上手图形验证码,防止接口被恶意刷量!">5 分钟快速上手图形验证码,防止接口被恶意刷量!</a></li>
    </ul>
</div>

            </div>
            <h2 class="tx-title">相关推荐</h2>
            <div class="home-news">
                                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6398.html" title="搭建一个20人的办公网络(适用于20多人的小型办公网络环境)" class="f-black" target="_blank">搭建一个20人的办公网络(适用于20多人的小型办公网络环境)</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">楼主有5台机上网,则需要一个8口路由器,组网方法如下:设备:1、8口路由器一台,其中8口为LAN(局域网)端口,一个WAN(广域网)端口,价格100--400元2、网线N米,这个你自己会看了:)...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6397.html" title="笔记本电脑各种参数介绍(笔记本电脑各项参数新手普及知识)" class="f-black" target="_blank">笔记本电脑各种参数介绍(笔记本电脑各项参数新手普及知识)</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">1、CPU:这个主要取决于频率和二级缓存,频率越高、二级缓存越大,速度越快,现在的CPU有三级缓存、四级缓存等,都影响相应速度。2、内存:内存的存取速度取决于接口、颗粒数量多少与储存大小,一般来说,内...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6396.html" title="汉字上面带拼音输入法下载(字上面带拼音的输入法是哪个)" class="f-black" target="_blank">汉字上面带拼音输入法下载(字上面带拼音的输入法是哪个)</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">使用手机上的拼音输入法打成汉字的方法如下:1.打开手机上的拼音输入法,在输入框中输入汉字的拼音,例如“nihao”。2.根据输入法提示的候选词,选择正确的汉字。例如,如果输入“nihao”,输...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6395.html" title="xpsp3安装版系统下载(windowsxpsp3安装教程)" class="f-black" target="_blank">xpsp3安装版系统下载(windowsxpsp3安装教程)</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">xpsp3纯净版在采用微软封装部署技术的基础上,结合作者的实际工作经验,融合了许多实用的功能。它通过一键分区、一键装系统、自动装驱动、一键设定分辨率,一键填IP,一键Ghost备份(恢复)等一系列...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6394.html" title="没有备份的手机数据怎么恢复" class="f-black" target="_blank">没有备份的手机数据怎么恢复</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">手机没有备份恢复数据方法如下1、使用数据线将手机与电脑连接好,在“我的电脑”中可以看到手机的盘符。  2、将手机开启USB调试模式。在手机设置中找到开发者选项,然后点击“开启USB调试模式”。  3、...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6393.html" title="电脑怎么激活windows11专业版" class="f-black" target="_blank">电脑怎么激活windows11专业版</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">win11专业版激活方法有多种,以下提供两种常用的激活方式:方法一:使用激活密钥激活。在win11桌面上右键点击“此电脑”,选择“属性”选项。进入属性页面后,点击“更改产品密钥或升级windows”。...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6392.html" title="华为手机助手下载官网(华为手机助手app下载专区)" class="f-black" target="_blank">华为手机助手下载官网(华为手机助手app下载专区)</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">华为手机助手策略调整,已不支持从应用市场下载手机助手,目前华为手机助手是需要在电脑上下载或更新手机助手到最新版本,https://consumer.huawei.com/cn/support/his...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6391.html" title="光纤线断了怎么接(宽带光纤线断了怎么接)" class="f-black" target="_blank">光纤线断了怎么接(宽带光纤线断了怎么接)</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">宽带光纤线断了可以重接,具体操作方法如下:1、光纤连接的时候要根据束管内,同色相连,同芯相连,按顺序进行连接,由大到小。一般有三种连接方法,分别是熔接、活动连接和机械连接。2、连接的时候要开剥光缆,抛...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6390.html" title="深度操作系统安装教程(深度操作系统安装教程图解)" class="f-black">深度操作系统安装教程(深度操作系统安装教程图解)</a></dt>
    <dd>
        <ul class="row">
            <li class="col-6 col-m-6"><a href="http://www.liulianxun.com/post/6390.html" class="img-box" data-ratio="16:9" title="深度操作系统安装教程(深度操作系统安装教程图解)" target="_blank"><img src="https://p3.douyinpic.com/large/tos-cn-i-0022/12a83ef955ea40198820d6b9a37fb088" alt="深度操作系统安装教程(深度操作系统安装教程图解)"></a></li>
            <li class="col-6 col-m-6"><a href="http://www.liulianxun.com/post/6390.html" class="img-box" data-ratio="16:9" title="深度操作系统安装教程(深度操作系统安装教程图解)" target="_blank"><img src="https://p3.douyinpic.com/large/tos-cn-i-0022/e3ecfea420234d08b7b9da9088867b38" alt="深度操作系统安装教程(深度操作系统安装教程图解)"></a></li>
            <li class="col-6 col-m-6"><a href="http://www.liulianxun.com/post/6390.html" class="img-box" data-ratio="16:9" title="深度操作系统安装教程(深度操作系统安装教程图解)" target="_blank"><img src="https://p3.douyinpic.com/large/tos-cn-i-0022/836a466455084512beaaba8188626769" alt="深度操作系统安装教程(深度操作系统安装教程图解)"></a></li>
            <li class="col-6 col-m-6"><a href="http://www.liulianxun.com/post/6390.html" class="img-box" data-ratio="16:9" title="深度操作系统安装教程(深度操作系统安装教程图解)" target="_blank"><img src="https://p3.douyinpic.com/large/tos-cn-i-0022/d8ea76f790944b7db861a832fe505276" alt="深度操作系统安装教程(深度操作系统安装教程图解)"></a></li>
        </ul>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6389.html" title="win7旗舰版和专业版区别(win7旗舰版跟专业版)" class="f-black" target="_blank">win7旗舰版和专业版区别(win7旗舰版跟专业版)</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">1、功能区别:Win7旗舰版比专业版多了三个功能,分别是Bitlocker、BitlockerToGo和多语言界面; 2、用途区别:旗舰版的功能是所有版本中最全最强大的,占用的系统资源,...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6388.html" title="万能连接钥匙(万能wifi连接钥匙下载)" class="f-black" target="_blank">万能连接钥匙(万能wifi连接钥匙下载)</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">1、首先打开wifi万能钥匙软件,若手机没有开启WLAN,就根据软件提示打开WLAN开关;2、打开WLAN开关后,会显示附近的WiFi,如果知道密码,可点击相应WiFi后点击‘输入密码’连接;3、若不...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6387.html" title="雨林木风音乐叫什么(雨林木风是啥)" class="f-black" target="_blank">雨林木风音乐叫什么(雨林木风是啥)</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">雨林木风的创始人是陈年鑫先生。陈年鑫先生于1999年创立了雨林木风公司,其初衷是为满足中国市场对高品质、高性能电脑的需求。在陈年鑫先生的领导下,雨林木风以技术创新、产品质量和客户服务为核心价值,不断推...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6386.html" title="aics6序列号永久序列号(aics6破解序列号)" class="f-black" target="_blank">aics6序列号永久序列号(aics6破解序列号)</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">关于AICS6这个版本,虽然是比较久远的版本,但是在功能上也是十分全面和强大的,作为一名平面设计师的话,AICS6的现有的功能已经能够应付几乎所有的设计工作了……到底AICC2019的功能是不是...</p>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6385.html" title="win7正在启动windows 卡住(win7正在启动windows卡住了 进入安全模式)" class="f-black">win7正在启动windows 卡住(win7正在启动windows卡住了 进入安全模式)</a></dt>
    <dd>
        <ul class="row">
            <li class="col-6 col-m-6"><a href="http://www.liulianxun.com/post/6385.html" class="img-box" data-ratio="16:9" title="win7正在启动windows 卡住(win7正在启动windows卡住了 进入安全模式)" target="_blank"><img src="https://p3.douyinpic.com/large/tos-cn-i-0022/b04c0b8d084e46dd886a8dcbbbbc3a33" alt="win7正在启动windows 卡住(win7正在启动windows卡住了 进入安全模式)"></a></li>
            <li class="col-6 col-m-6"><a href="http://www.liulianxun.com/post/6385.html" class="img-box" data-ratio="16:9" title="win7正在启动windows 卡住(win7正在启动windows卡住了 进入安全模式)" target="_blank"><img src="https://p3.douyinpic.com/large/tos-cn-i-0022/b039e6df8f3543adbd6a2dac5c0cb84a" alt="win7正在启动windows 卡住(win7正在启动windows卡住了 进入安全模式)"></a></li>
            <li class="col-6 col-m-6"><a href="http://www.liulianxun.com/post/6385.html" class="img-box" data-ratio="16:9" title="win7正在启动windows 卡住(win7正在启动windows卡住了 进入安全模式)" target="_blank"><img src="https://p3.douyinpic.com/large/tos-cn-i-0022/5151c1bea6f74362b30b52c42637a7a1" alt="win7正在启动windows 卡住(win7正在启动windows卡住了 进入安全模式)"></a></li>
            <li class="col-6 col-m-6"><a href="http://www.liulianxun.com/post/6385.html" class="img-box" data-ratio="16:9" title="win7正在启动windows 卡住(win7正在启动windows卡住了 进入安全模式)" target="_blank"><img src="https://p3.douyinpic.com/large/tos-cn-i-0022/7a311581514a496da37e2efb48b046ff" alt="win7正在启动windows 卡住(win7正在启动windows卡住了 进入安全模式)"></a></li>
        </ul>
    </dd>
    </dl>                                
<dl class="news-box clearfix pd20 ">
        <dt class="f-18 mb10"><a href="http://www.liulianxun.com/post/6384.html" title="手机可以装电脑系统吗(手机可以装电脑系统吗怎么装)" class="f-black" target="_blank">手机可以装电脑系统吗(手机可以装电脑系统吗怎么装)</a></dt>
    <dd class="news-txt">
        <p class="f-gray f-13">答题公式1:手机可以通过数据线或无线连接的方式给电脑装系统。手机安装系统需要一定的技巧和软件支持,一般需要通过数据线或无线连接的方式与电脑连接,并下载相应的软件和系统文件进行安装。对于大部分手机用户来...</p>
    </dd>
    </dl>                
            </div>

            
        </div>

                <div class="side-box col-6 col-m-24 col2-">
                                    <dl class="side-hot">
                <dt>一周热门</dt>
                <dd>
                    <ul>
                                                <li>
                            <a href="http://www.liulianxun.com/post/3858.html" title="飞牛OS入门安装遇到问题,如何解决?" target="_blank">
                                                                <h2 class="f-15">飞牛OS入门安装遇到问题,如何解决?</h2>
                            </a>
                        </li>
                                                <li>
                            <a href="http://www.liulianxun.com/post/1986.html" title="系统C盘清理:微信PC端文件清理,扩大C盘可用空间步骤" target="_blank">
                                                                <h2 class="f-15">系统C盘清理:微信PC端文件清理,扩大C盘可用空间步骤</h2>
                            </a>
                        </li>
                                                <li>
                            <a href="http://www.liulianxun.com/post/3427.html" title="如何在 iPhone 和 Android 上恢复已删除的抖音消息" target="_blank">
                                                                <h2 class="f-15">如何在 iPhone 和 Android 上恢复已删除的抖音消息</h2>
                            </a>
                        </li>
                                                <li>
                            <a href="http://www.liulianxun.com/post/3581.html" title="Boost高性能并发无锁队列指南:boost::lockfree::queue" target="_blank">
                                                                <h2 class="f-15">Boost高性能并发无锁队列指南:boost::lockfree::queue</h2>
                            </a>
                        </li>
                                                <li>
                            <a href="http://www.liulianxun.com/post/3611.html" title="大模型手册: 保姆级用CherryStudio知识库" target="_blank">
                                                                <h2 class="f-15">大模型手册: 保姆级用CherryStudio知识库</h2>
                            </a>
                        </li>
                                                <li>
                            <a href="http://www.liulianxun.com/post/2085.html" title="西门子博途中如何输入读取和编辑date and time变量" target="_blank">
                                                                <h2 class="f-15">西门子博途中如何输入读取和编辑date and time变量</h2>
                            </a>
                        </li>
                                                <li>
                            <a href="http://www.liulianxun.com/post/4348.html" title="用什么工具在Win中查看8G大的log文件?" target="_blank">
                                                                <h2 class="f-15">用什么工具在Win中查看8G大的log文件?</h2>
                            </a>
                        </li>
                                                <li>
                            <a href="http://www.liulianxun.com/post/2905.html" title="我的Excel打开后是一堆乱码,如何解决?" target="_blank">
                                                                <h2 class="f-15">我的Excel打开后是一堆乱码,如何解决?</h2>
                            </a>
                        </li>
                                                <li>
                            <a href="http://www.liulianxun.com/post/3930.html" title="如何在 Windows 10 或 11 上通过命令行安装 Node.js 和 NPM" target="_blank">
                                                                <h2 class="f-15">如何在 Windows 10 或 11 上通过命令行安装 Node.js 和 NPM</h2>
                            </a>
                        </li>
                                                <li>
                            <a href="http://www.liulianxun.com/post/3299.html" title="威联通NAS安装阿里云盘WebDAV服务并添加到Infuse" target="_blank">
                                                                <h2 class="f-15">威联通NAS安装阿里云盘WebDAV服务并添加到Infuse</h2>
                            </a>
                        </li>
                                            </ul>
                </dd>
            </dl>
            
            

<dl class="function" id="divPrevious">
<dt class="function_t">最近发表</dt><dd class="function_c">


<ul><li><a title="搭建一个20人的办公网络(适用于20多人的小型办公网络环境)" href="http://www.liulianxun.com/post/6398.html">搭建一个20人的办公网络(适用于20多人的小型办公网络环境)</a></li>
<li><a title="笔记本电脑各种参数介绍(笔记本电脑各项参数新手普及知识)" href="http://www.liulianxun.com/post/6397.html">笔记本电脑各种参数介绍(笔记本电脑各项参数新手普及知识)</a></li>
<li><a title="汉字上面带拼音输入法下载(字上面带拼音的输入法是哪个)" href="http://www.liulianxun.com/post/6396.html">汉字上面带拼音输入法下载(字上面带拼音的输入法是哪个)</a></li>
<li><a title="xpsp3安装版系统下载(windowsxpsp3安装教程)" href="http://www.liulianxun.com/post/6395.html">xpsp3安装版系统下载(windowsxpsp3安装教程)</a></li>
<li><a title="没有备份的手机数据怎么恢复" href="http://www.liulianxun.com/post/6394.html">没有备份的手机数据怎么恢复</a></li>
<li><a title="电脑怎么激活windows11专业版" href="http://www.liulianxun.com/post/6393.html">电脑怎么激活windows11专业版</a></li>
<li><a title="华为手机助手下载官网(华为手机助手app下载专区)" href="http://www.liulianxun.com/post/6392.html">华为手机助手下载官网(华为手机助手app下载专区)</a></li>
<li><a title="光纤线断了怎么接(宽带光纤线断了怎么接)" href="http://www.liulianxun.com/post/6391.html">光纤线断了怎么接(宽带光纤线断了怎么接)</a></li>
<li><a title="深度操作系统安装教程(深度操作系统安装教程图解)" href="http://www.liulianxun.com/post/6390.html">深度操作系统安装教程(深度操作系统安装教程图解)</a></li>
<li><a title="win7旗舰版和专业版区别(win7旗舰版跟专业版)" href="http://www.liulianxun.com/post/6389.html">win7旗舰版和专业版区别(win7旗舰版跟专业版)</a></li>
</ul>

</dd>
</dl>
<dl class="function" id="divTags">
<dt class="function_t">标签列表</dt><dd class="function_c">


<ul><li><a title="python判断字典是否为空" href="http://www.liulianxun.com/tags-1.html">python判断字典是否为空<span class="tag-count"> (50)</span></a></li>
<li><a title="crontab每周一执行" href="http://www.liulianxun.com/tags-8.html">crontab每周一执行<span class="tag-count"> (48)</span></a></li>
<li><a title="aes和des区别" href="http://www.liulianxun.com/tags-9.html">aes和des区别<span class="tag-count"> (43)</span></a></li>
<li><a title="bash脚本和shell脚本的区别" href="http://www.liulianxun.com/tags-40.html">bash脚本和shell脚本的区别<span class="tag-count"> (35)</span></a></li>
<li><a title="canvas库" href="http://www.liulianxun.com/tags-45.html">canvas库<span class="tag-count"> (33)</span></a></li>
<li><a title="dataframe筛选满足条件的行" href="http://www.liulianxun.com/tags-47.html">dataframe筛选满足条件的行<span class="tag-count"> (35)</span></a></li>
<li><a title="gitlab日志" href="http://www.liulianxun.com/tags-52.html">gitlab日志<span class="tag-count"> (33)</span></a></li>
<li><a title="lua xpcall" href="http://www.liulianxun.com/tags-53.html">lua xpcall<span class="tag-count"> (36)</span></a></li>
<li><a title="blob转json" href="http://www.liulianxun.com/tags-54.html">blob转json<span class="tag-count"> (33)</span></a></li>
<li><a title="python判断是否在列表中" href="http://www.liulianxun.com/tags-56.html">python判断是否在列表中<span class="tag-count"> (34)</span></a></li>
<li><a title="python html转pdf" href="http://www.liulianxun.com/tags-57.html">python html转pdf<span class="tag-count"> (36)</span></a></li>
<li><a title="安装指定版本npm" href="http://www.liulianxun.com/tags-67.html">安装指定版本npm<span class="tag-count"> (37)</span></a></li>
<li><a title="idea搜索jar包内容" href="http://www.liulianxun.com/tags-69.html">idea搜索jar包内容<span class="tag-count"> (33)</span></a></li>
<li><a title="css鼠标悬停出现隐藏的文字" href="http://www.liulianxun.com/tags-75.html">css鼠标悬停出现隐藏的文字<span class="tag-count"> (34)</span></a></li>
<li><a title="linux nacos启动命令" href="http://www.liulianxun.com/tags-81.html">linux nacos启动命令<span class="tag-count"> (33)</span></a></li>
<li><a title="gitlab 日志" href="http://www.liulianxun.com/tags-82.html">gitlab 日志<span class="tag-count"> (36)</span></a></li>
<li><a title="adb pull" href="http://www.liulianxun.com/tags-108.html">adb pull<span class="tag-count"> (37)</span></a></li>
<li><a title="python判断元素在不在列表里" href="http://www.liulianxun.com/tags-114.html">python判断元素在不在列表里<span class="tag-count"> (34)</span></a></li>
<li><a title="python 字典删除元素" href="http://www.liulianxun.com/tags-115.html">python 字典删除元素<span class="tag-count"> (34)</span></a></li>
<li><a title="vscode切换git分支" href="http://www.liulianxun.com/tags-117.html">vscode切换git分支<span class="tag-count"> (35)</span></a></li>
<li><a title="python bytes转16进制" href="http://www.liulianxun.com/tags-122.html">python bytes转16进制<span class="tag-count"> (35)</span></a></li>
<li><a title="grep前后几行" href="http://www.liulianxun.com/tags-237.html">grep前后几行<span class="tag-count"> (34)</span></a></li>
<li><a title="hashmap转list" href="http://www.liulianxun.com/tags-244.html">hashmap转list<span class="tag-count"> (35)</span></a></li>
<li><a title="c++ 字符串查找" href="http://www.liulianxun.com/tags-287.html">c++ 字符串查找<span class="tag-count"> (35)</span></a></li>
<li><a title="mysql刷新权限" href="http://www.liulianxun.com/tags-316.html">mysql刷新权限<span class="tag-count"> (34)</span></a></li>
</ul>

</dd>
</dl>
        </div>
            </div>
</div>



</div>
<div class="footer">
    <div class="wide ta-c f-12">
                    </div>
</div>


<div class="fixed-box ">
    <ul>
        <li class="pchide wapflex"><a href="http://www.liulianxun.com/"><i class="fa fa-home"></i> 首页</a></li>
                        <li><a href="http://www.liulianxun.com/shoulu.html" title="收录申请" target="_blank"><i class="fa fa-chain-broken mr5"></i>收录</a></li>
                                <li><span class="gotop"><i class="fa fa-caret-up mr5"></i> 顶部</span></li>
    </ul>
</div>
<script src="http://www.liulianxun.com/zb_users/theme/tx_hao/script/txcstx.min.js?v=2024-12-04"></script>
</body>
</html><!--119.14 ms , 13 queries , 3376kb memory , 0 error-->