pythonpython字符串按单词反转输出 python字符串按单词反转输出方法1import reastring = 'hello world'revwords = ' '.join(reversed(astring.split()))print(revwords)方法2import reastring = 'hello ……继续阅读 » 水墨上仙 7年前 (2018-01-09) 2242浏览 1481个赞