跳转到内容

This page is also in English.

Read it in English

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

列表排序(Sort a list,sort)

按递增顺序排列的列表。

怎么写

sort(list)

list
列表。接受一个列表。

示例

  • sort⁡([3,1,2])=[1,2,3]\displaystyle \operatorname{sort}(\left[ 3, 1, 2 \right]) = \left[ 1, 2, 3 \right]
    sort([3, 1, 2])

    在求解器中,sort([3, 1, 2]) 的结果是 [1, 2, 3]。

    在求解器中打开
  • subsets

    列表所有保持顺序的子列表,以列表形式给出。

  • select

    列表中满足某个测试的元素。

  • table

    在一个或多个范围上求值表达式,构建列表。

  • rotate_right

    列表的元素向右移动,末尾的元素移到开头。

  • take

    列表的前几个元素。

  • rotate_left

    列表的元素向左移动,开头的元素移到末尾。