怎样在python的多行字符串或者list中输出最后一行

2025-04-16 05:46:19
推荐回答(1个)
回答1:

a = [1,2,3,4,5]
print a[-1]