2020年4月10日

python验证企业统一信用码

摘要: _credit_id_weight = ( 1, 3, 9, 27, 19, 26, 16, 17, 20, 29, 25, 13, 8, 24, 10, 30, 28) def _is_credit_id_valid(oid: str) -> bool: if not isinstance(oid 阅读全文

posted @ 2020-04-10 15:46 不要挡着我晒太阳 阅读(289) 评论(0) 推荐(0) 编辑

python验证身份证

摘要: _natual_id_weight = (7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2) def _is_natural_id_valid(oid: str) -> bool: if not isinstance(oid, str) or l 阅读全文

posted @ 2020-04-10 15:37 不要挡着我晒太阳 阅读(601) 评论(0) 推荐(0) 编辑

sqlalchemy的op函数:

摘要: 源码: def op(self, opstring, precedence=0, is_comparison=False): """produce a generic operator function. e.g.:: somecolumn.op("*")(5) produces:: somecol 阅读全文

posted @ 2020-04-10 14:20 不要挡着我晒太阳 阅读(905) 评论(0) 推荐(0) 编辑

flask开发小结

摘要: 最简单的hello world #!/usr/bin/env python # encoding: utf-8 from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'hello world 阅读全文

posted @ 2020-04-10 11:06 不要挡着我晒太阳 阅读(210) 评论(0) 推荐(0) 编辑

导航