![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
CottonDuke
这个作者很懒,什么都没留下…
展开
-
pythonDB
import sys import MySQLdb class TransferMoney(object): def __init__(self, conn): self.conn = conn self.cursor = conn.cursor() def checkAccValid(se转载 2016-11-16 16:49:48 · 409 阅读 · 0 评论 -
python基础
如果一个字符串包含很多需要转义的字符,对每一个字符都进行转义会很麻烦。为了避免这种情况,我们可以在字符串前面加个前缀r ,表示这是一个 raw 字符串,里面的字符就不需要转义了。例如: r'\(~_~)/ \(~_~)/' 但是r'...'表示法不能表示多行字符串,也不能表示包含'和 "的字符串(为什么?) 如果要表示多行字符串,可以用'''...'''表示: Li转载 2016-11-16 16:44:53 · 445 阅读 · 0 评论