go top

列表切片

网络释义

  list slice

你用了列表切片list slice)的语法 [:] ,其效果是将 列表从头到尾每个元素切片出来并创建了一个新列表。 这脚本好难跑起来啊!

基于54个网页-相关网页

有道翻译

列表切片

List slicing

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • 通过综合切片知识以及如何修改list知识,应该已经获得非常重要见识可以通过多种方式修改列表

    By combining what you know about slicing with the knowledge that a list can be modified, you've gained a significant insight: you can modify a list in a number of ways.

    youdao

  • 所以如果两个都省略了,这个切片就是整个列表一个复制了。

    So if you omit both, the slice is a copy of the whole list.

    youdao

  • 可以使用切片方法返回原始列表中的列表包括范围

    Can I use the slice method to return a list that excludes ranges in the middle of the original list?

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定