PyListFunctions


NamePyListFunctions JSON
Version 0.8.0 PyPI version JSON
download
home_pagehttps://space.bilibili.com/1654383134
Summarysome functions and classes for list( ̄︶ ̄)↗ (and some other kinds of functions)
upload_time2024-10-01 10:59:09
maintainerNone
docs_urlNone
authorBL_30G(BiliBili现名为:NPC-013)
requires_pythonNone
licenseNone
keywords python list clean functions string bool class type
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            制作者:\ `BL_30G(现名为:NPC-013) <https://space.bilibili.com/1654383134>`__
============================================================================

版权归属:\ `BL_30G(现名为:NPC-013) <https://space.bilibili.com/1654383134>`__
==============================================================================

安装要求:无任何依赖库(csv_to_lst_or_dic()函数依赖pandas库)
-----------------------------------------------------------

Python版本:\ **3.7及以上**
---------------------------

Version: **0.8.0**
------------------

使用方法: import PylistFunctions
--------------------------------

已有类:advanced_list, limit_len_list, type_list(已废弃)(目前3个)
-------------------------------------------------------------------

已有函数:tidy_up_list(), deeply_tidy_up_list(), bubble_sort(), replace_str(), reverse_str(), statistics_str(), find_list(), list_calculation(), in_list_calculation(), var_in_list(), can_variable(), get_variable(), populate_lsts(), len_sorted_lst(), list_internal_situation(), csv_to_lst_or_dic(), get_type_lst(), randstr(), nrange()(目前19个)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

更新日志:
----------

**0.1:** 原始函数(暂且只有一个<(_ _)> ):tidy_up_list()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. raw:: html

   <h4>

tidy_up_list特性([STRIKEOUT:bug]):会将list内的str(float)自动转换成float
比如:str(‘3.1415926536’)会转变成float(3.1415926536)

.. raw:: html

   </h4>

**0.2:** 添加函数:deeply_tidy_up_list()和bubble_sort()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. raw:: html

   <h4>

更改tidy_up_list()形参为:list

.. raw:: html

   </h4>

.. raw:: html

   <h4>

所有函数已添加自检条件,均可放心使用~

.. raw:: html

   </h4>

**0.2.1:** 修复安装不了的问题(发癫写的setup.py,总之0.1~0.2的版本都安装不了
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**0.2.2:** 修复tidy_up_list()和deeply_tidy_up_list()遇空列表,字典,集合,会报错”ValueError: list.remove(x): X Not in List”的问题
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

别问我为什么没有以上的版本,原因是之前脑瘫整出来的包不测试直接上传,后面删了工程重新发了一遍(极悲
--------------------------------------------------------------------------------------------------

**0.3:** 新增replace_str()函数,去除deeply_tidy_up_list()除lst外的任何形参,bubble_sort()增判断列表元素条件,可放心使用(真的
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

现在tidy_up_list()函数的特性:遇到str(int)或str(float)的类型会自动转换原本的类型
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

比如: test = str(‘114514’) (列表内的元素)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

在使用tidy_up_list()函数后会变成int(114514),(float同理)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

要是有人不需要自动转换的功能的话,我后面可能也会做额外的形参来修复的 (已经动了点,但是没时间做)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**0.3.1(0.3.2):** 修复replace_str()形参__c长度大于__nc长度时删除原字符不干净的问题
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.3.3:** 修复replace_str()所有问题,可放心使用(其实是我想不起来了(悲)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

!!0.3.3 出了新问题(del变量名语句会报错)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.3.4:** 修复修复replace_str()所有问题(真),bubble_sort()目前可排列str类变量(长度只能为1),且新增round形参(四舍五入)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.3.5:** 唉,冒泡排序还是回退到只能排序整数和浮点数的版本了(极悲,添加了reverse_str()函数(疑似水分
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.4:** 更新内容:1.bubble_sort()添加形参in_reverse_order,2.添加statistics_str(),find_list(),list_calculation()共3个函数
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.4.1:** 修复replace_str()删不干净字符串的问题(真真真真真)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.4.2:** 为迎合str.count()的计数方式,修改了replace_str判断字符的方法
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

例子:未修改前:print(replace_str(“helllo world”, “ll”, ““, num=2)) # 输出helo world
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

修改后:print(replace_str(“helllo world”, “ll”, ““, num=2)) # 输出helllo world
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**0.5.0:** 更新了5个函数(按照实用程度排序),分别为:in_list_calculation(), var_in_list(), can_variable(), get_variable(), index_len()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

in_list_calculation()特性:multi_calculation形参要是运算符数量不足以计算,则会填充用户所给的multi_calculation形参
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

比如:
^^^^^

test = [1, 2, [3, [4, [5], [6], 7]]]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

print(in_list_calculation(test, multi_calculation=“+,-”))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

则实际运算为:1+2-3+4-5+6-7
^^^^^^^^^^^^^^^^^^^^^^^^^^^

**0.6.0:** 更新类type_list,函数get_type_lst(), len_sorted_lst(), csv_to_lst_or_dic(), populate_lsts(), list_internal_situation()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.7.0:** type_list类已废弃,新增advanced_list类, replace_str函数新增__start和__end形参
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.7.0:** import错误,请勿使用
-------------------------------

**0.7.1:** 修复错误(byd这个也修错了
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.7.2:** 真·修复完成,(前两个版本已删除
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.7.3:** 真真真·修复完成,(前三个版本已删除(极悲
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.7.4:** 开始使用存根,修复手机qpython提示ImportError: cannot import name ‘Supportsindex’,修复advanced_list使用.pop()形参为空报错的bug
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.7.6:** 修复advanced_list.copy()的报错问题,删除版本0.7.4(别问我为什么没有0.7.5),开学停更
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**0.7.7:** 新增randstr()和nrange()函数,修复advanced_list切片得到list类问题, 修复advanced_list.replace函数形参全为None删不干净元素的问题,真·修复advanced_list.copy函数
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**0.8.0:** 删除0.7.7版本(advanced_list的__getitem__犯了个大错,没有返回值,只有None),删除index_len函数,禁止advanced_list的__add__方法,新增limit_len_list类,删去advanced_list的auto_replenishment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



            

Raw data

            {
    "_id": null,
    "home_page": "https://space.bilibili.com/1654383134",
    "name": "PyListFunctions",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, list, clean, functions, string, bool, class, type",
    "author": "BL_30G(BiliBili\u73b0\u540d\u4e3a:NPC-013)",
    "author_email": "2842621898@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/88/59/1e6ddc8b171258450f49e7749be72a074dcf6e726b176ea36fc6925c2f09/PyListFunctions-0.8.0.tar.gz",
    "platform": null,
    "description": "\u5236\u4f5c\u8005\uff1a\\ `BL_30G(\u73b0\u540d\u4e3a:NPC-013) <https://space.bilibili.com/1654383134>`__\r\n============================================================================\r\n\r\n\u7248\u6743\u5f52\u5c5e\uff1a\\ `BL_30G(\u73b0\u540d\u4e3a:NPC-013) <https://space.bilibili.com/1654383134>`__\r\n==============================================================================\r\n\r\n\u5b89\u88c5\u8981\u6c42\uff1a\u65e0\u4efb\u4f55\u4f9d\u8d56\u5e93(csv_to_lst_or_dic()\u51fd\u6570\u4f9d\u8d56pandas\u5e93)\r\n-----------------------------------------------------------\r\n\r\nPython\u7248\u672c\uff1a\\ **3.7\u53ca\u4ee5\u4e0a**\r\n---------------------------\r\n\r\nVersion: **0.8.0**\r\n------------------\r\n\r\n\u4f7f\u7528\u65b9\u6cd5: import PylistFunctions\r\n--------------------------------\r\n\r\n\u5df2\u6709\u7c7b\uff1aadvanced_list, limit_len_list, type_list(\u5df2\u5e9f\u5f03)\uff08\u76ee\u524d3\u4e2a\uff09\r\n-------------------------------------------------------------------\r\n\r\n\u5df2\u6709\u51fd\u6570\uff1atidy_up_list(), deeply_tidy_up_list(), bubble_sort(), replace_str(), reverse_str(), statistics_str(), find_list(), list_calculation(), in_list_calculation(), var_in_list(), can_variable(), get_variable(), populate_lsts(), len_sorted_lst(), list_internal_situation(), csv_to_lst_or_dic(), get_type_lst(), randstr(), nrange()\uff08\u76ee\u524d19\u4e2a\uff09\r\n---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\r\n\r\n\u66f4\u65b0\u65e5\u5fd7\uff1a\r\n----------\r\n\r\n**0.1\uff1a** \u539f\u59cb\u51fd\u6570(\u6682\u4e14\u53ea\u6709\u4e00\u4e2a<(\uff3f\u3000\uff3f)> )\uff1atidy_up_list()\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n.. raw:: html\r\n\r\n   <h4>\r\n\r\ntidy_up_list\u7279\u6027([STRIKEOUT:bug])\uff1a\u4f1a\u5c06list\u5185\u7684str(float)\u81ea\u52a8\u8f6c\u6362\u6210float\r\n\u6bd4\u5982\uff1astr(\u20183.1415926536\u2019)\u4f1a\u8f6c\u53d8\u6210float(3.1415926536)\r\n\r\n.. raw:: html\r\n\r\n   </h4>\r\n\r\n**0.2\uff1a** \u6dfb\u52a0\u51fd\u6570:deeply_tidy_up_list()\u548cbubble_sort()\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n.. raw:: html\r\n\r\n   <h4>\r\n\r\n\u66f4\u6539tidy_up_list()\u5f62\u53c2\u4e3a\uff1alist\r\n\r\n.. raw:: html\r\n\r\n   </h4>\r\n\r\n.. raw:: html\r\n\r\n   <h4>\r\n\r\n\u6240\u6709\u51fd\u6570\u5df2\u6dfb\u52a0\u81ea\u68c0\u6761\u4ef6\uff0c\u5747\u53ef\u653e\u5fc3\u4f7f\u7528~\r\n\r\n.. raw:: html\r\n\r\n   </h4>\r\n\r\n**0.2.1\uff1a** \u4fee\u590d\u5b89\u88c5\u4e0d\u4e86\u7684\u95ee\u9898\uff08\u53d1\u766b\u5199\u7684setup.py\uff0c\u603b\u4e4b0.1~0.2\u7684\u7248\u672c\u90fd\u5b89\u88c5\u4e0d\u4e86\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n**0.2.2\uff1a** \u4fee\u590dtidy_up_list()\u548cdeeply_tidy_up_list()\u9047\u7a7a\u5217\u8868,\u5b57\u5178,\u96c6\u5408\uff0c\u4f1a\u62a5\u9519\u201dValueError: list.remove(x): X Not in List\u201d\u7684\u95ee\u9898\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n\u522b\u95ee\u6211\u4e3a\u4ec0\u4e48\u6ca1\u6709\u4ee5\u4e0a\u7684\u7248\u672c\uff0c\u539f\u56e0\u662f\u4e4b\u524d\u8111\u762b\u6574\u51fa\u6765\u7684\u5305\u4e0d\u6d4b\u8bd5\u76f4\u63a5\u4e0a\u4f20\uff0c\u540e\u9762\u5220\u4e86\u5de5\u7a0b\u91cd\u65b0\u53d1\u4e86\u4e00\u904d\uff08\u6781\u60b2\r\n--------------------------------------------------------------------------------------------------\r\n\r\n**0.3\uff1a** \u65b0\u589ereplace_str()\u51fd\u6570\uff0c\u53bb\u9664deeply_tidy_up_list()\u9664lst\u5916\u7684\u4efb\u4f55\u5f62\u53c2\uff0cbubble_sort()\u589e\u5224\u65ad\u5217\u8868\u5143\u7d20\u6761\u4ef6\uff0c\u53ef\u653e\u5fc3\u4f7f\u7528\uff08\u771f\u7684\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n\u73b0\u5728tidy_up_list()\u51fd\u6570\u7684\u7279\u6027\uff1a\u9047\u5230str(int)\u6216str(float)\u7684\u7c7b\u578b\u4f1a\u81ea\u52a8\u8f6c\u6362\u539f\u672c\u7684\u7c7b\u578b\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n\u6bd4\u5982: test = str(\u2018114514\u2019) (\u5217\u8868\u5185\u7684\u5143\u7d20)\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n\u5728\u4f7f\u7528tidy_up_list()\u51fd\u6570\u540e\u4f1a\u53d8\u6210int(114514)\uff0c(float\u540c\u7406)\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n\u8981\u662f\u6709\u4eba\u4e0d\u9700\u8981\u81ea\u52a8\u8f6c\u6362\u7684\u529f\u80fd\u7684\u8bdd\uff0c\u6211\u540e\u9762\u53ef\u80fd\u4e5f\u4f1a\u505a\u989d\u5916\u7684\u5f62\u53c2\u6765\u4fee\u590d\u7684 (\u5df2\u7ecf\u52a8\u4e86\u70b9\uff0c\u4f46\u662f\u6ca1\u65f6\u95f4\u505a)\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n**0.3.1(0.3.2)\uff1a** \u4fee\u590dreplace_str()\u5f62\u53c2__c\u957f\u5ea6\u5927\u4e8e__nc\u957f\u5ea6\u65f6\u5220\u9664\u539f\u5b57\u7b26\u4e0d\u5e72\u51c0\u7684\u95ee\u9898\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.3.3\uff1a** \u4fee\u590dreplace_str()\u6240\u6709\u95ee\u9898\uff0c\u53ef\u653e\u5fc3\u4f7f\u7528\uff08\u5176\u5b9e\u662f\u6211\u60f3\u4e0d\u8d77\u6765\u4e86(\u60b2\uff09\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n\uff01\uff010.3.3 \u51fa\u4e86\u65b0\u95ee\u9898(del\u53d8\u91cf\u540d\u8bed\u53e5\u4f1a\u62a5\u9519)\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.3.4\uff1a** \u4fee\u590d\u4fee\u590dreplace_str()\u6240\u6709\u95ee\u9898\uff08\u771f\uff09\uff0cbubble_sort()\u76ee\u524d\u53ef\u6392\u5217str\u7c7b\u53d8\u91cf(\u957f\u5ea6\u53ea\u80fd\u4e3a1)\uff0c\u4e14\u65b0\u589eround\u5f62\u53c2(\u56db\u820d\u4e94\u5165)\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.3.5\uff1a** \u5509\uff0c\u5192\u6ce1\u6392\u5e8f\u8fd8\u662f\u56de\u9000\u5230\u53ea\u80fd\u6392\u5e8f\u6574\u6570\u548c\u6d6e\u70b9\u6570\u7684\u7248\u672c\u4e86\uff08\u6781\u60b2\uff0c\u6dfb\u52a0\u4e86reverse_str()\u51fd\u6570\uff08\u7591\u4f3c\u6c34\u5206\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.4\uff1a** \u66f4\u65b0\u5185\u5bb9\uff1a1.bubble_sort()\u6dfb\u52a0\u5f62\u53c2in_reverse_order\uff0c2.\u6dfb\u52a0statistics_str(),find_list(),list_calculation()\u51713\u4e2a\u51fd\u6570\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.4.1\uff1a** \u4fee\u590dreplace_str()\u5220\u4e0d\u5e72\u51c0\u5b57\u7b26\u4e32\u7684\u95ee\u9898(\u771f\u771f\u771f\u771f\u771f)\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.4.2\uff1a** \u4e3a\u8fce\u5408str.count()\u7684\u8ba1\u6570\u65b9\u5f0f\uff0c\u4fee\u6539\u4e86replace_str\u5224\u65ad\u5b57\u7b26\u7684\u65b9\u6cd5\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n\u4f8b\u5b50\uff1a\u672a\u4fee\u6539\u524d:print(replace_str(\u201chelllo world\u201d, \u201cll\u201d, \u201c\u201c, num=2)) # \u8f93\u51fahelo world\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n\u4fee\u6539\u540e:print(replace_str(\u201chelllo world\u201d, \u201cll\u201d, \u201c\u201c, num=2)) # \u8f93\u51fahelllo world\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n**0.5.0\uff1a** \u66f4\u65b0\u4e865\u4e2a\u51fd\u6570(\u6309\u7167\u5b9e\u7528\u7a0b\u5ea6\u6392\u5e8f)\uff0c\u5206\u522b\u4e3a\uff1ain_list_calculation(), var_in_list(), can_variable(), get_variable(), index_len()\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\nin_list_calculation()\u7279\u6027\uff1amulti_calculation\u5f62\u53c2\u8981\u662f\u8fd0\u7b97\u7b26\u6570\u91cf\u4e0d\u8db3\u4ee5\u8ba1\u7b97\uff0c\u5219\u4f1a\u586b\u5145\u7528\u6237\u6240\u7ed9\u7684multi_calculation\u5f62\u53c2\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n\u6bd4\u5982:\r\n^^^^^\r\n\r\ntest = [1, 2, [3, [4, [5], [6], 7]]]\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\nprint(in_list_calculation(test, multi_calculation=\u201c+,-\u201d))\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n\u5219\u5b9e\u9645\u8fd0\u7b97\u4e3a\uff1a1+2-3+4-5+6-7\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n**0.6.0\uff1a** \u66f4\u65b0\u7c7btype_list\uff0c\u51fd\u6570get_type_lst(), len_sorted_lst(), csv_to_lst_or_dic(), populate_lsts(), list_internal_situation()\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.7.0\uff1a** type_list\u7c7b\u5df2\u5e9f\u5f03,\u65b0\u589eadvanced_list\u7c7b, replace_str\u51fd\u6570\u65b0\u589e__start\u548c__end\u5f62\u53c2\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.7.0\uff1a** import\u9519\u8bef,\u8bf7\u52ff\u4f7f\u7528\r\n-------------------------------\r\n\r\n**0.7.1\uff1a** \u4fee\u590d\u9519\u8bef\uff08byd\u8fd9\u4e2a\u4e5f\u4fee\u9519\u4e86\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.7.2\uff1a** \u771f\u00b7\u4fee\u590d\u5b8c\u6210\uff0c\uff08\u524d\u4e24\u4e2a\u7248\u672c\u5df2\u5220\u9664\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.7.3\uff1a** \u771f\u771f\u771f\u00b7\u4fee\u590d\u5b8c\u6210\uff0c\uff08\u524d\u4e09\u4e2a\u7248\u672c\u5df2\u5220\u9664\uff08\u6781\u60b2\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.7.4\uff1a** \u5f00\u59cb\u4f7f\u7528\u5b58\u6839\uff0c\u4fee\u590d\u624b\u673aqpython\u63d0\u793aImportError: cannot import name \u2018Supportsindex\u2019\uff0c\u4fee\u590dadvanced_list\u4f7f\u7528.pop()\u5f62\u53c2\u4e3a\u7a7a\u62a5\u9519\u7684bug\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.7.6\uff1a** \u4fee\u590dadvanced_list.copy()\u7684\u62a5\u9519\u95ee\u9898\uff0c\u5220\u9664\u7248\u672c0.7.4(\u522b\u95ee\u6211\u4e3a\u4ec0\u4e48\u6ca1\u67090.7.5)\uff0c\u5f00\u5b66\u505c\u66f4\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n**0.7.7\uff1a** \u65b0\u589erandstr()\u548cnrange()\u51fd\u6570\uff0c\u4fee\u590dadvanced_list\u5207\u7247\u5f97\u5230list\u7c7b\u95ee\u9898, \u4fee\u590dadvanced_list.replace\u51fd\u6570\u5f62\u53c2\u5168\u4e3aNone\u5220\u4e0d\u5e72\u51c0\u5143\u7d20\u7684\u95ee\u9898\uff0c\u771f\u00b7\u4fee\u590dadvanced_list.copy\u51fd\u6570\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n**0.8.0\uff1a** \u5220\u96640.7.7\u7248\u672c(advanced_list\u7684__getitem__\u72af\u4e86\u4e2a\u5927\u9519,\u6ca1\u6709\u8fd4\u56de\u503c,\u53ea\u6709None)\uff0c\u5220\u9664index_len\u51fd\u6570\uff0c\u7981\u6b62advanced_list\u7684__add__\u65b9\u6cd5\uff0c\u65b0\u589elimit_len_list\u7c7b\uff0c\u5220\u53bbadvanced_list\u7684auto_replenishment\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "some functions and classes for list\uff08\uffe3\ufe36\uffe3\uff09\u2197\u3000(and some other kinds of functions)",
    "version": "0.8.0",
    "project_urls": {
        "Homepage": "https://space.bilibili.com/1654383134"
    },
    "split_keywords": [
        "python",
        " list",
        " clean",
        " functions",
        " string",
        " bool",
        " class",
        " type"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ab964c0149e32755798086c47d64b34537fb5dd5d2fa7c39fa30212c245bc4ee",
                "md5": "a7646a0eb1a13b7b454a7309ab151685",
                "sha256": "430608220f4edfdeb5df7b8c8b6525aef78879c8035b0834632702e9ebdd1bbb"
            },
            "downloads": -1,
            "filename": "PyListFunctions-0.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a7646a0eb1a13b7b454a7309ab151685",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 22696,
            "upload_time": "2024-10-01T10:59:07",
            "upload_time_iso_8601": "2024-10-01T10:59:07.254235Z",
            "url": "https://files.pythonhosted.org/packages/ab/96/4c0149e32755798086c47d64b34537fb5dd5d2fa7c39fa30212c245bc4ee/PyListFunctions-0.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "88591e6ddc8b171258450f49e7749be72a074dcf6e726b176ea36fc6925c2f09",
                "md5": "b40a302e1f6e283d69b594fe1677f965",
                "sha256": "a9e2fc939290e2b0bab438f5e6908fb8ff7bbc9d2ad5dc7444ca84cab3d2ce53"
            },
            "downloads": -1,
            "filename": "PyListFunctions-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b40a302e1f6e283d69b594fe1677f965",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 19726,
            "upload_time": "2024-10-01T10:59:09",
            "upload_time_iso_8601": "2024-10-01T10:59:09.459698Z",
            "url": "https://files.pythonhosted.org/packages/88/59/1e6ddc8b171258450f49e7749be72a074dcf6e726b176ea36fc6925c2f09/PyListFunctions-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-01 10:59:09",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pylistfunctions"
}
        
Elapsed time: 2.45567s