📌  相关文章
📜  以相反的顺序打印列表python代码示例

📅  最后修改于: 2022-03-11 14:46:46.080000             🧑  作者: Mango

代码示例4
languages = ['C++', 'Python', 'Scratch']
#Method1:
languages.reverse()
print(languages)
#Method2:
lang = languages[::-1]
print(lang)