def selectsql(self, sqlstr, *condition):
arr = sqlstr.split("?")
if len(arr) != len(condition) + 1:
return
rs = ""
for i in range(len(arr)-1):
rs += arr[i] + str(condition[i])
print(rs)
def sele(self,sqlstr,**condition):
for key in condition:
print(key,condition[key])
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did86466