各种数据类型相互转换
摘要:
将类似‘id=3,name=abc’字符串转为[['id', '3'], ['name', 'abc']] int转换成其他类型 int -->str str(int) 可以直接任意转换 int -->bool 非0为真 int -->tuple 不能这么做 报错 int -->list 不能这么做 阅读全文
posted @ 2018-08-01 17:45 _AlexWang 阅读(401) 评论(0) 推荐(0)
posted @ 2018-08-01 17:45 _AlexWang 阅读(401) 评论(0) 推荐(0)
posted @ 2018-08-01 15:31 _AlexWang 阅读(1709) 评论(0) 推荐(0)