随笔分类 -  [07] 脚本语言

摘要:MIT Introduction to Computer Science and Programming (Lesson one ) 这篇文是记载 MIT 计算机科学及编程导论 第一集 的笔记 Lesson one : Goals of the course;what is computation; 阅读全文
posted @ 2016-06-19 16:52 Levi.duan 阅读(277) 评论(0) 推荐(0)
摘要:ip_spider.py= = =#!/usr/bin/python# coding: utf-8import osimport sysimport requestsimport reimport urllibimport sysreload(sys)sys.setdefaultencoding( ... 阅读全文
posted @ 2015-02-28 14:55 Levi.duan 阅读(418) 评论(0) 推荐(0)
摘要:Python 发送微博 1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 4 from weibo import * 5 6 def press_sina_weibo(): 7 8 APP_KEY = 'XXXX' 9 APP_SECRET = 'XXXX'10 11 CALLBACK_URL = 'https://api.weibo.com/oauth2/default.html'12 13 client = APIClient(app_key=APP_KEY, app_secret=... 阅读全文
posted @ 2013-05-10 14:37 Levi.duan 阅读(271) 评论(0) 推荐(0)