小编Sol*_*Sol的帖子

如何在Python中计算负数的平方

我不知道如何在 Python 中计算负数的平方。我知道你可以这样做x**2,但如果你使用-1**2它,结果是 -1,但 -1 的平方是 1。

python numbers square

1
推荐指数
1
解决办法
3878
查看次数

标签 统计

numbers ×1

python ×1

square ×1