如何快速的得到string的最后一个字符

str='python'
print str[-1]

 

posted @ 2015-12-03 10:04  Xiao|Deng  阅读(2975)  评论(0编辑  收藏  举报