Discuss / Python / 为啥不能用索引s[0]的方式

为啥不能用索引s[0]的方式

Topic source

*小小

#1 Created at ... [Delete] [Delete and Lock User]

发现对于空字符串,s[0]的写法会字符越界,为啥呢,其他非空字符串都正常


  • 1

Reply