小编Dha*_*dra的帖子

在python中我在使用sort函数时遇到错误

我在使用python的sort函数时遇到了问题.

>>>d = [23,45,67,5,4,23,45,89]
>>>d[5]
23
>>>g = d
>>>g.sort()
>>>d[5]
45
Run Code Online (Sandbox Code Playgroud)

有什么办法,我可以在不打扰d的情况下进行排序.

python sorting

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

标签 统计

python ×1

sorting ×1