python操做mysql和redis

如题 #!/usr/bin/python # -*- coding: UTF-8 -*- import MySQLdb import redis import datetime c = 2 d = "ssdd" testStr = """select * from a where id = %d and name = %s""" % (c, d) print(testStr) # 打开数据库链接
相关文章
相关标签/搜索