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