![](https://img-blog.csdnimg.cn/20190918140053667.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Python for Everybody
文章平均质量分 93
This Specialization builds on the success of the Python for Everybody course and will introduce fundamental programming concepts including data struct
*OASIS*
这个作者很懒,什么都没留下…
展开
-
如何高效调试代码
程序错误分类程序一般会有三种错误:语法错误,运行错误和语义错误。区分这三种错误有助于更快速地追踪错误。 语法错误Syntax error:语法是指程序的结构和规则。比如括号要成对用。如果你的程序有某个地方出现了语法错误,Python会显示出错信息并退出,程序就不能运行了。最开始学习编程的这段时间,你遇到的最常见的估计就是这种情况。等你经验多了,基本就犯的少了,而且也很容易发现了。 运行错误Runtime error:第二种错误就是运行错误,显而易见了,就是直到运行的时候才原创 2023-01-24 15:32:20 · 713 阅读 · 0 评论 -
Counting Email in a Database
Counting OrganizationsThis application will read the mailbox data (mbox.txt) and count the number of email messages per organization (i.e. domain name of the email address) using a database with the following schema to maintain the counts.原创 2023-01-18 11:52:09 · 369 阅读 · 0 评论 -
Use GeoJSON API
Calling a JSON APIIn this assignment you will write a Python program somewhat similar to http://www.py4e.com/code3/geojson.py. The program will prompt for a location, contact a web service and retrieve JSON for the web service and parse that data, and re原创 2023-01-14 18:34:40 · 209 阅读 · 0 评论 -
Extracting Data from JSON
Extracting Data from JSONIn this assignment you will write a Python program somewhat similar tohttp://www.py4e.com/code3/json2.py. The program will prompt for a URL, read the JSON data from that URL usingurlliband then parse and extract the comment原创 2023-01-14 17:58:41 · 121 阅读 · 0 评论 -
Extracting Data from XML
Extracting Data from XMLIn this assignment you will write a Python program somewhat similar tohttp://www.py4e.com/code3/geoxml.py. The program will prompt for a URL, read the XML data from that URL usingurlliband then parse and extract the comment c原创 2023-01-13 21:30:04 · 82 阅读 · 0 评论 -
Following Links in HTML Using BeautifulSoup
Following Links in PythonIn this assignment you will write a Python program that expands on http://www.py4e.com/code3/urllinks.py. The program will use urllib to read the HTML from the data files below, extract the href= vaues from the anchor tags, scan原创 2023-01-11 13:44:39 · 183 阅读 · 0 评论 -
Scraping HTML Data with BeautifulSoup
Scraping Numbers from HTML using BeautifulSoupIn this assignment you will write a Python program similar tohttp://www.py4e.com/code3/urllink2.py. The program will useurllibto read the HTML from the data files below, and parse the data, extracting num原创 2023-01-11 12:50:55 · 212 阅读 · 0 评论 -
Understanding the Request / Response Cycle
Exploring the HyperText Transport ProtocolYou are to retrieve the following document using the HTTP protocol in a way that you can examine the HTTP Response headers.原创 2023-01-10 23:17:35 · 93 阅读 · 0 评论 -
Extracting Data With Regular Expressions
Finding Numbers in a HaystackIn this assignment you will read through and parse a file with text and numbers. You will extract all the numbers in the file and compute the sum of the numbers.原创 2023-01-10 12:50:04 · 166 阅读 · 0 评论 -
Python Data Structures Assignment答案
This course will introduce the core data structures of the Python programming language. We will move past the basics of procedural programming and explore how we can use the Python built-in data structures such as lists, dictionaries, and tuples to perform原创 2023-01-09 17:21:17 · 702 阅读 · 0 评论 -
Programming for Everybody (Getting Started with Python) Assignment答案
This course aims to teach everyone the basics of programming computers using Python. We cover the basics of how one constructs a program from a series of simple instructions in Python. The course has no pre-requisites and avoids all but the simplest mathe原创 2023-01-08 19:14:37 · 404 阅读 · 0 评论