返回信息流☆─────────────────────────────────────☆
zsjing (zzzsss) 于 (Thu Nov 20 10:50:37 2014) 提到:
2天以内 可校内付款 价钱好商量
以下是要求概要 详情私聊
zsj086@163.com
15101096371
ICS 32 Fall 2014
Project #3: Ride Across the River
Background
We saw in the previous project that our Python programs are capable of connecting to the "outside world" around them — to other programs running on the same machine, or even to other programs running on different machines in faraway places. This is a powerful thing for a program to be able to do, because it is no longer limited to taking its input from a user or from a file stored locally; its input is now potentially anything that's accessible via the Internet, making it possible to solve a vast array of new problems and process a much broader collection of information. Once you have the ability to connect your programs to others, a whole new world opens up: suddenly, the idea that you should be able to write a program that combines, say, Google search queries, the Internet Movie Database, and your favorite social network to find people who like movies similar to the ones you like doesn't seem so far-fetched.
But we also saw that getting programs to share information is tricky, for (at least) two reasons. Firstly, there's a software engineering problem: a protocol has to be designed that both programs can use to have their conversation. Secondly, there's a social problem: if the same person (or group of people) isn't writing both programs, it's necessary for them to agree on the protocol ahead of time, then to implement it. This second problem has a potentially catastrophic effect on our ability to make things work — how could you ever convince Google to agree to use your protocol just to communicate with you?
In practice, both of these problems are largely solved by the presence of standards, such as those defined by the World Wide Web Consortium. Standards help by providing detailed communication protocols whose details have already been hammered out, with the intention of handling the most common set of needs that will arise in programs. This eliminates the need to design one's own protocol (where the standard protocols will suffice, which is more often than you might think) and allows programs to be combined in arbitrary ways; as long as they support the protocol, they've taken a big step toward being able to interoperate with each other. What's more, standard protocols often have standard implementations, so that you won't have to code up the details yourself as you did in the previous project. For example, Python has built-in support for a number of standard Internet protocols, including HTTP (HyperText Transfer Protocol, the protocol that your browser uses to download web pages) among others.
At first blush, HTTP doesn't seem all that important: it appears to be a protocol that will allow you to write programs that download web pages (i.e., that allow you to write programs that play the same role that web browsers do). But it turns out that HTTP is a lot more important than that, since it is the protocol that underlies a much wider variety of traffic on the Internet than you might first imagine. This is not limited only to the conversation that your browser has with a web server in order to download a web page, though that conversation most often uses HTTP (or its more secure variant, HTTPS). HTTP also underlies a growing variety of program-to-program communications using web protocols, broadly called web services, where web sites or other software systems communicate directly with one another, or where programs other than web browsers fetch data from and affect change on web sites or other software systems. Fortunately, since HTTP support is built directly into Python, we can write programs that use these web services without having to handle low-level details of the protocol, though there are some details that you'll need to be familiar with if you want to use the provided implementation effectively.
This project gives you the opportunity to explore a small part of the vast sea of possibilities presented by web APIs and web services. You'll likely find that you spend a lot of your time in this project understanding the web API you'll need — being able to navigate technical documentation and gradually build an understanding of another system is a vital skill in building real software — and that the amount of code you need isn't nearly what you might expect when you first read the project write-up. As always, work incrementally rather than trying to work on the entire project all at once. When you're done, you'll have taken a valuable step toward being able to build Python programs that interact with web services, which opens up your ability to write programs for yourself that are real and useful.
Additionally, you'll get what might be your first experience with writing classes in Python, which will broaden your ability to write clean, expressive Python programs.
Reminder: Do not select a partner
Unlike the previous projects, which required that you use the pair programming technique, this project requires that you work individually. So you will not be selecting a partner and you will not be doing pair programming this time; each student is responsible for his or her own project submission for this project. While we do believe that pair programming offers a lot of benefits, you'll also need to build your skills at working on your own, as future coursework (and possibly future employment) will depend on them.
The problem, in general
In your work on this project, you'll write a program that is capable of displaying information about a trip from one location to another (e.g., driving directions between two street addresses). For example, you might display turn-by-turn directions, an estimate of how long it might take to get from one location to another, and so on. You'll use real-world map data — real cities, real streets — to solve your problem. So, when you're done, your program will be a very simple navigation system, not entirely unlike the ones you see on some smartphones or in some cars. If you want to know how to drive from UCI to Staples Center in Los Angeles, your program will be able to tell you.
That may sound like something that is well beyond your current skill level and/or time you have available, that you're being asked to build a complete, professional system that would ordinarily be written by a large team of people over a period of months. And, indeed, if you had to write the entire system from scratch, that would certainly be true; it would take even a seasoned professional a lot longer than the time allotted to complete a task like that, and would require skills well beyond what's been taught in your coursework to date.
But there is good news here: we operate in an interconnected world, where information of all kinds is available to us in web browsers, smartphone applications, and so on. And we're fortunate that a lot of that information is available for free, not just in a way that lets us view it in a web browser, but in a way that makes it available to the programs we write. Provided that we can find an online service that provides the information we need, and provided that we are licensed to use it — either because it's free and we meet the terms of use, or because we're willing to pay for the privilege — we can use it to solve our problem.
As it turns out, the information we need to solve this particular problem is available online, in a form that can be consumed by a Python program, and licensed in a way that lets us use it (because it is free for non-commercial use). The only trick is figuring out how to get the information into our program. Luckily for us, the service that provides this information uses standard protocols and formats that are common on the Internet; even better, all of these protocols are formats are implemented already in Python's standard library!
☆─────────────────────────────────────☆
nuanyangyang (暖羊羊) 于 (Thu Nov 20 11:07:35 2014) 提到:
其实你只要贴你们学校这个题目的URL就行了。 http://www.ics.uci.edu/~thornton/ics32/ProjectGuide/Project3/
如果你真的读了的话,你会发现这道题简直简单得令人发指。
真的,不要作弊。作弊的话可不只是得0分而已,你的信誉就毁了。
☆─────────────────────────────────────☆
zsjing (zzzsss) 于 (Thu Nov 20 11:30:41 2014) 提到:
【 在 nuanyangyang 的大作中提到: 】
: 其实你只要贴你们学校这个题目的URL就行了。 http://www.ics.uci.edu/~thornton/ics32/ProjectGuide/Project3/
: 如果你真的读了的话,你会发现这道题简直简单得令人发指。
: 真的,不要作弊。作弊的话可不只是得0分而已,你的信誉就毁了。
呃 。。有兴趣么?
☆─────────────────────────────────────☆
nuanyangyang (暖羊羊) 于 (Thu Nov 20 11:34:55 2014) 提到:
【 在 zsjing 的大作中提到: 】
:
: 呃 。。有兴趣么?
有兴趣。改天做一个玩,顺便申请一个github账号放上去。
☆─────────────────────────────────────☆
b78859793 (【意涵团】|TSfans|节操道人|neji) 于 (Thu Nov 20 19:03:05 2014) 提到:
看到一堆英文就不想读了
☆─────────────────────────────────────☆
SepMoYoung (九月末央) 于 (Thu Nov 20 20:01:52 2014) 提到:
【 在 nuanyangyang 的大作中提到: 】
: 其实你只要贴你们学校这个题目的URL就行了。 http://www.ics.uci.edu/~thornton/ics32/ProjectGuide/Project3/
: 如果你真的读了的话,你会发现这道题简直简单得令人发指。
: 真的,不要作弊。作弊的话可不只是得0分而已,你的信誉就毁了。
暖神怎么无处不在[ema9]
☆─────────────────────────────────────☆
waws5253 (情报员) 于 (Thu Nov 20 22:48:45 2014) 提到:
楼主的学校好厉害
【 在 zsjing (zzzsss) 的大作中提到: 】
: 呃 。。有兴趣么?
通过『我邮2.0』发布
☆─────────────────────────────────────☆
yo1995 (yo) 于 (Fri Nov 21 00:11:26 2014) 提到:
看了半天late policy 感觉要是拖延症就要完蛋了。。。
☆─────────────────────────────────────☆
Anthropoth (Iason Mink) 于 (Fri Nov 21 08:22:52 2014) 提到:
无法理解花钱出国读书还想作弊的人怎么想的。
【 在 zsjing 的大作中提到: 】
2天以内 可校内付款 价钱好商量
以下是要求概要 详情...
☆─────────────────────────────────────☆
huangfs (henry51) 于 (Fri Nov 21 09:06:34 2014) 提到:
毕竟暖神。
【 在 nuanyangyang 的大作中提到: 】
:
: 有兴趣。改天做一个玩,顺便申请一个github账号放上去。
☆─────────────────────────────────────☆
fireling (fireling) 于 (Fri Nov 21 09:24:07 2014) 提到:
你出国是刷学历的么?这么简单的题目,自己不会动手做做?
☆─────────────────────────────────────☆
nullne (nullne) 于 (Fri Nov 21 09:42:13 2014) 提到:
仔细看完了。。
☆─────────────────────────────────────☆
Poet (等我写完这首诗) 于 (Fri Nov 21 09:42:45 2014) 提到:
【 在 nuanyangyang 的大作中提到: 】
:
: 有兴趣。改天做一个玩,顺便申请一个github账号放上去。
任性!!
☆─────────────────────────────────────☆
sollian (sollian) 于 (Fri Nov 21 09:55:15 2014) 提到:
什么学校,看不懂
【 在 waws5253 的大作中提到: 】
: 楼主的学校好厉害
:
: 通过『我邮2.0』发布
☆─────────────────────────────────────☆
a291812460 (【意涵团】慢慢来 ) 于 (Fri Nov 21 10:05:49 2014) 提到:
毕竟暖神。。
【 在 nuanyangyang 的大作中提到: 】
: 其实你只要贴你们学校这个题目的URL就行了。 http://www.ics.uci.edu/~thornton/ics32/ProjectGuide/Project3/
: 如果你真的读了的话,你会发现这道题简直简单得令人发指。
: 真的,不要作弊。作弊的话可不只是得0分而已,你的信誉就毁了。
☆─────────────────────────────────────☆
nvyoujiaren (lz我能做你的京东狗吗?帅到没朋友) 于 (Fri Nov 21 10:08:59 2014) 提到:
谁能娶了暖神,就像娶了王语嫣一样,绝世武功让你挑着学~~
【 在 nuanyangyang 的大作中提到: 】
: 其实你只要贴你们学校这个题目的URL就行了。 http://www.ics.uci.edu/~thornton/ics32/ProjectGuide/Project3/
: 如果你真的读了的话,你会发现这道题简直简单得令人发指。
: 真的,不要作弊。作弊的话可不只是得0分而已,你的信誉就毁了。
☆─────────────────────────────────────☆
LeeSir (小蜗) 于 (Fri Nov 21 10:09:19 2014) 提到:
大暖神。。。。。
【 在 nuanyangyang 的大作中提到: 】
:
: 有兴趣。改天做一个玩,顺便申请一个github账号放上去。
☆─────────────────────────────────────☆
lipengxiang (通原虐我千万遍 我待通原如初恋) 于 (Fri Nov 21 10:11:51 2014) 提到:
不明觉厉
☆─────────────────────────────────────☆
ashjn2011 (auchan) 于 (Fri Nov 21 10:32:12 2014) 提到:
10大了,2333
☆─────────────────────────────────────☆
OranGGe (各种小分队||各种水果) 于 (Fri Nov 21 10:39:55 2014) 提到:
暖神是女人?感兴趣
☆─────────────────────────────────────☆
yxssfxwzy (yxssfxwzy) 于 (Fri Nov 21 10:46:10 2014) 提到:
暖神!
来自「北邮人论坛手机版」
☆─────────────────────────────────────☆
huzzar (huzzar) 于 (Fri Nov 21 10:54:45 2014) 提到:
这下面不是都写清楚该怎么做了吗。。
【 在 nuanyangyang 的大作中提到: 】
: 其实你只要贴你们学校这个题目的URL就行了。 http://www.ics.uci.edu/~thornton/ics32/ProjectGuide/Project3/
: 如果你真的读了的话,你会发现这道题简直简单得令人发指。
: 真的,不要作弊。作弊的话可不只是得0分而已,你的信誉就毁了。
☆─────────────────────────────────────☆
totoro7 (田花仙) 于 (Fri Nov 21 10:56:50 2014) 提到:
原来是UCI的学生
来自「北邮人论坛手机版」
☆─────────────────────────────────────☆
NoCoding (不想敲代码) 于 (Fri Nov 21 10:57:08 2014) 提到:
表示对暖神感兴趣。。。哈哈。。真的十大了。。
☆─────────────────────────────────────☆
melodyz1990 (泡沫) 于 (Fri Nov 21 11:00:00 2014) 提到:
☆─────────────────────────────────────☆
melodyz1990 (泡沫) 于 (Fri Nov 21 11:00:17 2014) 提到:
哪看出来的[ema11]
【 在 totoro7 的大作中提到: 】
: 原来是UCI的学生
: 来自「北邮人论坛手机版」
☆─────────────────────────────────────☆
W1039766642 (虎符,小虎还乡,东风舞) 于 (Fri Nov 21 11:01:10 2014) 提到:
【 在 melodyz1990 的大作中提到: 】
: 哪看出来的
URL里面有nci。。
☆─────────────────────────────────────☆
melodyz1990 (泡沫) 于 (Fri Nov 21 11:05:03 2014) 提到:
哦。。。。我在网页上看了半天没找到,也是醉了。。。。
【 在 W1039766642 的大作中提到: 】
:
: URL里面有nci。。
☆─────────────────────────────────────☆
Wizmann (Wizmann) 于 (Fri Nov 21 11:14:56 2014) 提到:
读了半天不知道要干啥的。。。是不是这辈子就翻不了了。。。
来自「北邮人论坛手机版」
☆─────────────────────────────────────☆
Ncer (Nczzk) 于 (Fri Nov 21 11:29:05 2014) 提到:
暖神是女的?
通过『我邮2.0』发布
☆─────────────────────────────────────☆
mbvxgf (硬化源质术士) 于 (Fri Nov 21 11:31:42 2014) 提到:
这歪果仁出题好能逼逼啊...读了两段都没看出来需求是啥...
来自「北邮人论坛手机版」
☆─────────────────────────────────────☆
sj09211463 (GhostInMatrix) 于 (Fri Nov 21 12:07:34 2014) 提到:
又见暖神!好想见见真身!
☆─────────────────────────────────────☆
awsxsa (就是帅) 于 (Fri Nov 21 12:11:47 2014) 提到:
不知道"有偿"是什么意思,我需要3345元人民币
☆─────────────────────────────────────☆
waws5253 (情报员) 于 (Fri Nov 21 15:39:42 2014) 提到:
欧文
【 在 sollian (sollian) 的大作中提到: 】
: 什么学校,看不懂
通过『我邮2.0』发布
☆─────────────────────────────────────☆
buptmuye (BUPT_木叶) 于 (Fri Nov 21 18:42:56 2014) 提到:
那么问题来了,暖神照片何处求?
【 在 SepMoYoung 的大作中提到: 】
:
: 暖神怎么无处不在
这是一条镜像帖。来源:北邮人论坛 / python / #4416同步于 2014/11/23
Python机器人发帖
[合集] 求python大神帮做大作业,时间紧,有偿
Chon
2014/11/23镜像同步0 回复
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。