字符串倒序
摘要:
#写一个函数, 输入一个字符串, 返回倒序排列的结果#1).利用字符串本身的翻转 str = 'abcdef'# def string_reverse(string):# return string[::-1]## if __name__ =="__main__":# print(str)# pri 阅读全文
posted @ 2019-02-28 23:19 ExplorerMan 阅读(370) 评论(0) 推荐(0)
posted @ 2019-02-28 23:19 ExplorerMan 阅读(370) 评论(0) 推荐(0)
posted @ 2019-02-28 23:19 ExplorerMan 阅读(125) 评论(0) 推荐(0)
posted @ 2019-02-28 23:17 ExplorerMan 阅读(240) 评论(0) 推荐(0)
posted @ 2019-02-28 22:27 ExplorerMan 阅读(235) 评论(0) 推荐(0)