📌  相关文章
📜  如何在python代码示例中以相反的顺序打印元组

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

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