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

str='python'
print str[-1]

 

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