Skip to content

A list of squares · ⁨平方数列表⁩

English

A list of squares

Build a list one item at a time instead of printing each value.

squares.append(x) adds x to the end of the list. Printing a whole list shows it in square brackets, with commas between the items.

中文

平方数列表

一次加入一个元素来建立列表,而不是逐个打印数值。

squares.append(x) 把 x 加到列表末尾。打印整个列表时,会用方括号显示,元素之间用逗号隔开。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩