File tree Expand file tree Collapse file tree
10. something interesting Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "cells" : [
3+ {
4+ "cell_type" : " markdown" ,
5+ "metadata" : {},
6+ "source" : [
7+ " # 用 Python 获取 NBA 的比赛的数据"
8+ ]
9+ },
10+ {
11+ "cell_type" : " code" ,
12+ "execution_count" : 1 ,
13+ "metadata" : {
14+ "collapsed" : true
15+ },
16+ "outputs" : [],
17+ "source" : [
18+ " from IPython.display import IFrame"
19+ ]
20+ },
21+ {
22+ "cell_type" : " markdown" ,
23+ "metadata" : {},
24+ "source" : [
25+ " 先来看看我们要实现什么样的效果:"
26+ ]
27+ },
28+ {
29+ "cell_type" : " code" ,
30+ "execution_count" : 2 ,
31+ "metadata" : {
32+ "collapsed" : false
33+ },
34+ "outputs" : [
35+ {
36+ "data" : {
37+ "text/html" : [
38+ " \n " ,
39+ " <iframe\n " ,
40+ " width=\" 700\"\n " ,
41+ " height=\" 400\"\n " ,
42+ " src=\" http://stats.nba.com/movement/#!/?GameID=0041400235&GameEventID=308\"\n " ,
43+ " frameborder=\" 0\"\n " ,
44+ " allowfullscreen\n " ,
45+ " ></iframe>\n " ,
46+ " "
47+ ],
48+ "text/plain" : [
49+ " <IPython.lib.display.IFrame at 0x3bb8ac8>"
50+ ]
51+ },
52+ "execution_count" : 2 ,
53+ "metadata" : {},
54+ "output_type" : " execute_result"
55+ }
56+ ],
57+ "source" : [
58+ " IFrame('http://stats.nba.com/movement/#!/?GameID=0041400235&GameEventID=308',\n " ,
59+ " width=700, height=400)"
60+ ]
61+ },
62+ {
63+ "cell_type" : " code" ,
64+ "execution_count" : null ,
65+ "metadata" : {
66+ "collapsed" : true
67+ },
68+ "outputs" : [],
69+ "source" : []
70+ }
71+ ],
72+ "metadata" : {
73+ "kernelspec" : {
74+ "display_name" : " Python 2" ,
75+ "language" : " python" ,
76+ "name" : " python2"
77+ },
78+ "language_info" : {
79+ "codemirror_mode" : {
80+ "name" : " ipython" ,
81+ "version" : 2
82+ },
83+ "file_extension" : " .py" ,
84+ "mimetype" : " text/x-python" ,
85+ "name" : " python" ,
86+ "nbconvert_exporter" : " python" ,
87+ "pygments_lexer" : " ipython2" ,
88+ "version" : " 2.7.9"
89+ }
90+ },
91+ "nbformat" : 4 ,
92+ "nbformat_minor" : 0
93+ }
You can’t perform that action at this time.
0 commit comments