demo.py
369 Bytes
# -*- coding: utf-8 -*-
# @Time : 2021/7/28 16:59
# @Author : Ljq
# @File : demo.py
# @Software: PyCharm
"""
"""
import re
from commons import ConfigDB as CoDB
res = CoDB.mysql_selectAll('SELECT number FROM entrance_fee_bill WHERE number in ("202108100900029","202108100900023")')
print(res)
a = [i[0] for i in res]
print(a)
a_str = ",".join(a)
print(a_str)