Py学习  »  Python

为什么Python要返回这个?[副本]

mbwins10 • 5 年前 • 1784 次点击  

如果 my_string = "This is MY string!" ,为什么 print(my_string[0:7:5]) 返回“Ti”而不是 “T i”是因为“This”和“is”之间有一个空格?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/52039
 
1784 次点击  
文章 [ 1 ]  |  最新文章 5 年前