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) # 打開數據庫鏈接
相關文章
相關標籤/搜索