![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
初入python
wanan嘻嘻
这个作者很懒,什么都没留下…
展开
-
新手上路 Python **.py SyntaxError: invalid syntax未知语法错误
python test.pySyntaxError: invalid syntax略显小白痴的未知语法错误原创 2015-09-19 20:03:13 · 25482 阅读 · 2 评论 -
python中翻转字符串的方法,标记一下
python中列表的强大解析功能使字符串的翻转变得易如反掌,下面介绍几种方法:1,使用字符串分片>>>s = 'python'>>>s[::-1]'nohtyp'2,将字符串转换成列表,使用列表的reverse方法,这里reverse是原地翻转,返回值是None,''.join(s)是将列表转换成字符串>>>s = list(s)>>>s.rever转载 2015-09-21 17:18:45 · 734 阅读 · 0 评论