看到一个面试题 要求是倒序打印一句英语
例如’this is a book’ 转成 ‘book a is this’ 要考虑空间
写法①
1 | str = 'this is a book' |
写法②
1 | def descStr(): |
写法③
1 | # coding:utf-8 |
看到一个面试题 要求是倒序打印一句英语
例如’this is a book’ 转成 ‘book a is this’ 要考虑空间
写法①
1 | str = 'this is a book' |
写法②
1 | def descStr(): |
写法③
1 | # coding:utf-8 |