🔍

首页Home › 文本工具Text Tools

🗂️ 列表分组(按数量分组、平均分组、按首字分组)Group List Items

把列表分成若干组:每组固定 N 项(例如每 3 个一组)、平均分成 N 组(各组数量最多相差 1,适合分小组、分配任务),或按首字母 / 首字、相同内容归类;输出可选每组一行、组间空行、带编号或方括号格式,组内分隔符可自定义。适合排座位、分队、批量处理和整理词表,数据在本地处理。Split a list into groups: a fixed N items per group (every 3, say), N groups of near-equal size (sizes differ by at most one, ideal for teams or sharing out tasks), or by first letter / first character or identical items. Output one group per line, groups separated by blank lines, numbered or in brackets, with your own separator inside each group. Handy for seating plans, teams, batch jobs and word lists. Processed locally.

使用说明与常见问题How-to & FAQ

「列表分组(按数量分组、平均分组、按首字分组)」是什么?What is the Group List Items tool?

把列表分成若干组:每组固定 N 项(例如每 3 个一组)、平均分成 N 组(各组数量最多相差 1,适合分小组、分配任务),或按首字母 / 首字、相同内容归类;输出可选每组一行、组间空行、带编号或方括号格式,组内分隔符可自定义。适合排座位、分队、批量处理和整理词表,数据在本地处理。Split a list into groups: a fixed N items per group (every 3, say), N groups of near-equal size (sizes differ by at most one, ideal for teams or sharing out tasks), or by first letter / first character or identical items. Output one group per line, groups separated by blank lines, numbered or in brackets, with your own separator inside each group. Handy for seating plans, teams, batch jobs and word lists. Processed locally.

如何使用「列表分组(按数量分组、平均分组、按首字分组)」?How do I use the Group List Items tool?

在「列表分组(按数量分组、平均分组、按首字分组)」中,把内容粘贴或输入到上方输入框,按需设置「输入分隔符」、「自定义」、「分组方式」、「N」、「输出」,结果会实时显示在下方,点击「复制结果」即可复制。In the Group List Items: Paste or type into the input box, adjust "Input separator", "Custom", "Group by", "N", "Output"; the result appears below instantly — click "Copy result" to copy it.

“每组 N 项”和“平均分成 N 组”有什么区别?What's the difference between N items per group and Into N groups?

“每组 N 项”从头开始每 N 个切一组,最后一组可能不满,例如 7 项每组 3 个得到 3 + 3 + 1;“平均分成 N 组”先确定组数,再让各组人数尽量相等(最多相差 1),7 项分 3 组得到 3 + 2 + 2,适合分小组。若 N 大于项目数,每项单独一组。N items per group cuts a group every N items from the start, so the last group may be short: 7 items in threes gives 3 + 3 + 1. Into N groups fixes the number of groups and keeps their sizes as equal as possible (differing by at most one): 7 items into 3 groups gives 3 + 2 + 2, which suits teams. If N is larger than the number of items, each item gets its own group.

想随机分组怎么办?How do I make random groups?

这个工具按列表原有顺序分组,结果可以预期、可以复现。需要随机分组时,先用“打乱行顺序”工具把名单打乱,再粘贴到这里平均分组即可。This tool keeps the list's order, so results are predictable and repeatable. For random groups, shuffle the list first with the Shuffle Lines tool, then paste it here and split it into groups.

按首字母分组怎么排序?How does first-letter grouping sort?

英文按首字母分组(不区分大小写,组名显示为大写),中文按第一个汉字分组,组按字母顺序排列(英文字母在前,中文在后按拼音);组内保持原来的先后顺序。“带编号”格式会把首字母或首字作为组名显示。English items are grouped by first letter (case-insensitive, with the group name in capitals) and Chinese items by their first character; groups are sorted alphabetically (Latin letters first, then Chinese by pinyin), and items keep their original order inside each group. The Numbered format shows the letter or character as the group name.

输入和输出是什么样的?What does the input and output look like?

例如在「列表分组(按数量分组、平均分组、按首字分组)」中输入 1 ⏎ 2 ⏎ 3 ⏎ 4 ⏎ 5 ⏎ 6 ⏎ 7,「分组方式」设为 每组 N 项,「N」设为 3,输出为:1, 2, 3 ⏎ 4, 5, 6 ⏎ 7(⏎ 表示换行)。For example, the Group List Items turns the input 1 ⏎ 2 ⏎ 3 ⏎ 4 ⏎ 5 ⏎ 6 ⏎ 7, "Group by" set to N items per group, "N" set to 3 into: 1, 2, 3 ⏎ 4, 5, 6 ⏎ 7 (⏎ marks a line break).

有哪些选项可以调整?What options can I adjust?

「列表分组(按数量分组、平均分组、按首字分组)」的设置:「输入分隔符」可选 自动识别、换行、逗号、分号、Tab、空格等(默认 自动识别);「自定义」可留空;「分组方式」可选 每组 N 项、平均分成 N 组、按首字母、相同项归为一组(默认 每组 N 项);「N」默认 3;「输出」可选 每组一行、带编号、方括号 [ ]、组间空一行(默认 每组一行);「组内分隔」默认 ,;可勾选:「忽略大小写」。改动任一选项后结果会按新设置重新生成。Settings in the Group List Items — "Input separator": Auto-detect, New line, Comma, Semicolon, Tab, Space, etc. (default Auto-detect); "Custom" optional; "Group by": N items per group, Into N groups, 首字 / By first letter, Identical items (default N items per group); "N" default 3; "Output": One group per line, Numbered, In brackets, Blank line between groups (default One group per line); "Within a group" default ,; tick boxes: "Ignore case". Changing any option regenerates the result with the new setting.

处理大段文本会卡吗?Can it handle long text?

「列表分组(按数量分组、平均分组、按首字分组)」在浏览器中直接处理,几 MB 以内的文本通常瞬间完成;文本不会离开你的设备。The Group List Items runs in your browser; text up to a few MB is usually processed instantly and never leaves your device.

「列表分组(按数量分组、平均分组、按首字分组)」免费吗?需要注册吗?Is the Group List Items free? Do I need an account?

「列表分组(按数量分组、平均分组、按首字分组)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Group List Items is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

✂️ 列表截取(取第 N 到 M 项、前 N 项、Python 切片)Slice a List🔄 列表循环移动(旋转列表顺序)Rotate a List🔘 给列表加项目符号或编号(• - 1. a. i.)Add List Item Bullets🧽 去除列表项前缀(删除项目符号、编号或指定前缀)Remove a List Item Prefix🏛️ 列表转多列(把一列数据排成多列表格)Convert a List to Columns🦋 生成对称列表(镜像回文列表)Create a Symmetric List➕ 列表追加项目(在开头、末尾或指定位置插入)Append Items to a List⬅️ 列表左侧补齐(补零、补空格右对齐)Left-Pad a List🧹 删除连续重复项(合并相邻的重复项目)Delete Repeating List Items📊 列表统计(项数、重复项、长度、数值统计)Print List Statistics🔤 Unicode 转 ASCII(去掉重音、全角转半角、替换特殊符号)Convert Unicode to ASCII🧮 ASCII 表格生成器(CSV 转文本表格)Draw ASCII Table

← 全部工具All tools