[2016年以后] python
文章平均质量分 88
徐长亮
大数据工程师
展开
-
python网络入门:urllib.request模块和urllib.urllib.parse模块
Urllib.parse模块urljoin方法,urljoin(base, url, allow_fragments=True) Join a base URL and a possibly relative URL to form an absoluteinterpretation of the latter.原创 2016-05-08 14:48:18 · 11105 阅读 · 0 评论 -
python入门: 快速python语法总结
1. list是处理一组有序项目的数据结构:2. 列表是可变类型的数据>>> list0=[]>>> type(list0)<class 'list'>>>> list0=['clark','30','male']3. 添加元素>>> list0.append('123456')4. 删除元素:>>> list0.remove(list0[3])原创 2015-12-13 20:35:10 · 2423 阅读 · 0 评论 -
python网络应用入门:网络爬虫的使用
(1)urllib.request.Request的使用(2)BeautifulSoup的使用(3)网络爬虫的设计概要:(4)网络爬虫的代码:原创 2016-05-07 21:13:46 · 2448 阅读 · 0 评论 -
Python Django的使用:Writing your first Django app--实践
Writing your first Django app, part 1安装djangoC:\Windows\system32>python -m django --version1.10.2Creating a projectFrom the command line, cd into a directory where you’d like to store your原创 2016-10-27 17:06:27 · 1767 阅读 · 0 评论 -
python数据库编程入门:python3.5连接mysql
概要:(1)通过针对python的db-api连接mysql数据库(2)通过对象-关系管理器(ORM)管理mysql原创 2016-05-07 20:50:32 · 11444 阅读 · 0 评论 -
DAO(Data Access Object)数据库程序接口的异常类案例
HP vertica的python DAO定义的教科书级别的异常类吧原创 2016-12-07 23:15:12 · 768 阅读 · 0 评论 -
温故而知新-python语法复习
1.程序的输出import sys;sys.stdout.write("helloworld\n");hello world print("%s is number %d" %("ten",10));ten is number 10 注:不同意print(),write()不会自动在字符串后面添加换行符 2.程序的输入import sys;user=inpu原创 2016-12-19 14:40:11 · 813 阅读 · 0 评论