在數據庫中查詢的時候,我們可以直接將1和2轉成男和女。。。
示例如下
select id,name,case sex when '1' then '男' when '2' then '女' end as sex from userinfo
在數據庫中查詢的時候,我們可以直接將1和2轉成男和女。。。
示例如下
select id,name,case sex when '1' then '男' when '2' then '女' end as sex from userinfo
@staticmethod def strSplit(textSource: str, patterns: str)->list: """ 分割字符串 :param