全部搜尋項
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: natsort  ]

套件:python3-natsort(6.0.0-1)

python3-natsort 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 natsort

維護小組:

外部的資源:

相似套件:

Natural sorting for Python (Python3)

natsort lets you apply natural sorting to your sequences easily, for example:

 >>> from natsort import natsorted
 >>> a = ['a2', 'a9', 'a1', 'a4', 'a10']
 >>> data = [['a1', 'a5'], ['a1', 'a40'], ['a10', 'a1'], ['a2', 'a5']]
 >>> natsorted(a)
 ['a1', 'a2', 'a4', 'a9', 'a10'
 >>> natsorted(data)
 [['a1', 'a5'], ['a1', 'a40'], ['a2', 'a5'], ['a10', 'a1']]

natsort identifies the numbers and sorts them separately from strings.

natsort comes with a shell script to use natural sorting in shell scripts. You can also execute natsort from the command line with Python -m natsort.

There exists another natural sorting package for Python called python-naturalsort. You may prefer that package if you wish to only sort version numbers.

This is the Python 3 version of the package.

其他與 python3-natsort 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 python3-natsort

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 30。2 kB153。0 kB [檔案列表]