摘要: 代码分析: str = 'abcdefg' print(str[1:])print(str[:-1])print(str[-1:])print(str[::-1])print(str[::-2])print(str[:]) 结果bcdefgabcdefggfedcbagecaabcdefg 1234 阅读全文
posted @ 2023-11-03 16:01 七星望 阅读(91) 评论(0) 推荐(0) 编辑