Skip to Content
Python语言及其应用(第2版)
book

Python语言及其应用(第2版)

by Bill Lubanovic
March 2022
Intermediate to advanced
522 pages
13h 52m
Chinese
Posts & Telecom Press
Content preview from Python语言及其应用(第2版)
400
21
21.3.2
数据验证
在清理数据的同时,通常还需要检查以下几项。
数据类型,比如整型、浮点值或字符串
取值范围
正确的值,比如有效的手机号或电子邮件地址
重复
缺失数据
这在处理
We
b
请求和响应时尤为常见。
可用于特定数据类型的
Python
包如下。
validate_email
phonenumber
一些有用的通用工具如下。
validators
pydantic
,适用于
Python 3.6
及以上版本,使用了类型提示
marshmallow
,包括序列化和反序列化
cerberus
其他
21.3.3
其他信息源
有时,我们需要来自其他地方的数据。一些商业和政府的数据源如下。
Opening government with Python
参见相关视频和幻灯片。
python-sunlight
用于访问
Sunlight
API
的库。
froide
一个基于
Django
的管理信息自由请求的平台。
40 Places to Find Open Data on the Web
一些有用的链接。
21.4
开源
Python
企业包
Odoo
全面的
ERP
平台。
Tryton
另一个全面的企业平台。
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python编程入门与实战

Python编程入门与实战

Posts & Telecom Press, Fabrizio Romano
Python实用技能学习指南

Python实用技能学习指南

Posts & Telecom Press, Robert Smallshire, Austin Bingham
Python技术基础视频教程

Python技术基础视频教程

保罗·J·戴特尔
Python面向对象编程指南

Python面向对象编程指南

Posts & Telecom Press, Steven F. Lott

Publisher Resources

ISBN: 9787115586223