changeset 27 | cb14131583c6 |
parent 25 | ed38dd9bdb50 |
child 28 | 514098969b11 |
26:1846ab4ebdda | 27:cb14131583c6 |
---|---|
25 </b> |
25 </b> |
26 </p> |
26 </p> |
27 <dl> |
27 <dl> |
28 <dt> |
28 <dt> |
29 <span class="article"> |
29 <span class="article"> |
30 <a href="#id2809348"> |
30 <a href="#id2766476"> |
31 Basic Python |
31 Basic Python |
32 </a> |
32 </a> |
33 </span> |
33 </span> |
34 </dt> |
34 </dt> |
35 <dd> |
35 <dd> |
36 <dl> |
36 <dl> |
37 <dt> |
37 <dt> |
38 <span class="section"> |
38 <span class="section"> |
39 <a href="#id2617111"> |
39 <a href="#id2574240"> |
40 1. Introduction |
40 1. Introduction |
41 </a> |
41 </a> |
42 </span> |
42 </span> |
43 </dt> |
43 </dt> |
44 <dt> |
44 <dt> |
45 <span class="section"> |
45 <span class="section"> |
46 <a href="#id2860477"> |
46 <a href="#id2817606"> |
47 2. The Python Interpreter |
47 2. The Python Interpreter |
48 </a> |
48 </a> |
49 </span> |
49 </span> |
50 </dt> |
50 </dt> |
51 <dd> |
51 <dd> |
52 <dl> |
52 <dl> |
53 <dt> |
53 <dt> |
54 <span class="section"> |
54 <span class="section"> |
55 <a href="#id2860486"> |
55 <a href="#id2817615"> |
56 2.1. The Interactive Interpreter |
56 2.1. The Interactive Interpreter |
57 </a> |
57 </a> |
58 </span> |
58 </span> |
59 </dt> |
59 </dt> |
60 <dt> |
60 <dt> |
61 <span class="section"> |
61 <span class="section"> |
62 <a href="#id2860659"> |
62 <a href="#id2817788"> |
63 2.2. |
63 2.2. |
64 <span class="emphasis"> |
64 <span class="emphasis"> |
65 <em> |
65 <em> |
66 ipython |
66 ipython |
67 </em> |
67 </em> |
72 </dt> |
72 </dt> |
73 </dl> |
73 </dl> |
74 </dd> |
74 </dd> |
75 <dt> |
75 <dt> |
76 <span class="section"> |
76 <span class="section"> |
77 <a href="#id2860784"> |
77 <a href="#id2817912"> |
78 3. Editing and running a python file |
78 3. Editing and running a python file |
79 </a> |
79 </a> |
80 </span> |
80 </span> |
81 </dt> |
81 </dt> |
82 <dt> |
82 <dt> |
83 <span class="section"> |
83 <span class="section"> |
84 <a href="#id2860890"> |
84 <a href="#id2818019"> |
85 4. Basic Datatypes and operators in Python |
85 4. Basic Datatypes and operators in Python |
86 </a> |
86 </a> |
87 </span> |
87 </span> |
88 </dt> |
88 </dt> |
89 <dd> |
89 <dd> |
90 <dl> |
90 <dl> |
91 <dt> |
91 <dt> |
92 <span class="section"> |
92 <span class="section"> |
93 <a href="#id2860925"> |
93 <a href="#id2818053"> |
94 4.1. Numbers |
94 4.1. Numbers |
95 </a> |
95 </a> |
96 </span> |
96 </span> |
97 </dt> |
97 </dt> |
98 <dt> |
98 <dt> |
99 <span class="section"> |
99 <span class="section"> |
100 <a href="#id2861055"> |
100 <a href="#id2818183"> |
101 4.2. Variables |
101 4.2. Variables |
102 </a> |
102 </a> |
103 </span> |
103 </span> |
104 </dt> |
104 </dt> |
105 <dt> |
105 <dt> |
106 <span class="section"> |
106 <span class="section"> |
107 <a href="#id2861102"> |
107 <a href="#id2818231"> |
108 4.3. Strings |
108 4.3. Strings |
109 </a> |
109 </a> |
110 </span> |
110 </span> |
111 </dt> |
111 </dt> |
112 <dt> |
112 <dt> |
113 <span class="section"> |
113 <span class="section"> |
114 <a href="#id2861297"> |
114 <a href="#id2818425"> |
115 4.4. Boolean |
115 4.4. Boolean |
116 </a> |
116 </a> |
117 </span> |
117 </span> |
118 </dt> |
118 </dt> |
119 </dl> |
119 </dl> |
120 </dd> |
120 </dd> |
121 <dt> |
121 <dt> |
122 <span class="section"> |
122 <span class="section"> |
123 <a href="#id2861325"> |
123 <a href="#id2818454"> |
124 5. The |
124 5. The |
125 <span class="strong"> |
125 <span class="strong"> |
126 <strong> |
126 <strong> |
127 while |
127 while |
128 </strong> |
128 </strong> |
131 </a> |
131 </a> |
132 </span> |
132 </span> |
133 </dt> |
133 </dt> |
134 <dt> |
134 <dt> |
135 <span class="section"> |
135 <span class="section"> |
136 <a href="#id2861363"> |
136 <a href="#id2818491"> |
137 6. The |
137 6. The |
138 <span class="strong"> |
138 <span class="strong"> |
139 <strong> |
139 <strong> |
140 if |
140 if |
141 </strong> |
141 </strong> |
144 </a> |
144 </a> |
145 </span> |
145 </span> |
146 </dt> |
146 </dt> |
147 <dt> |
147 <dt> |
148 <span class="section"> |
148 <span class="section"> |
149 <a href="#id2861432"> |
149 <a href="#id2818560"> |
150 7. |
150 7. |
151 <span class="strong"> |
151 <span class="strong"> |
152 <strong> |
152 <strong> |
153 raw_input() |
153 raw_input() |
154 </strong> |
154 </strong> |
156 </a> |
156 </a> |
157 </span> |
157 </span> |
158 </dt> |
158 </dt> |
159 <dt> |
159 <dt> |
160 <span class="section"> |
160 <span class="section"> |
161 <a href="#id2861586"> |
161 <a href="#id2818715"> |
162 8. |
162 8. |
163 <span class="strong"> |
163 <span class="strong"> |
164 <strong> |
164 <strong> |
165 int() |
165 int() |
166 </strong> |
166 </strong> |
176 <div class="article" title="Basic Python"> |
176 <div class="article" title="Basic Python"> |
177 <div class="titlepage"> |
177 <div class="titlepage"> |
178 <div> |
178 <div> |
179 <div> |
179 <div> |
180 <h2 class="title"> |
180 <h2 class="title"> |
181 <a name="id2809348"> |
181 <a name="id2766476"> |
182 </a> |
182 </a> |
183 Basic Python |
183 Basic Python |
184 </h2> |
184 </h2> |
185 </div> |
185 </div> |
186 </div> |
186 </div> |
193 </b> |
193 </b> |
194 </p> |
194 </p> |
195 <dl> |
195 <dl> |
196 <dt> |
196 <dt> |
197 <span class="section"> |
197 <span class="section"> |
198 <a href="#id2617111"> |
198 <a href="#id2574240"> |
199 1. Introduction |
199 1. Introduction |
200 </a> |
200 </a> |
201 </span> |
201 </span> |
202 </dt> |
202 </dt> |
203 <dt> |
203 <dt> |
204 <span class="section"> |
204 <span class="section"> |
205 <a href="#id2860477"> |
205 <a href="#id2817606"> |
206 2. The Python Interpreter |
206 2. The Python Interpreter |
207 </a> |
207 </a> |
208 </span> |
208 </span> |
209 </dt> |
209 </dt> |
210 <dd> |
210 <dd> |
211 <dl> |
211 <dl> |
212 <dt> |
212 <dt> |
213 <span class="section"> |
213 <span class="section"> |
214 <a href="#id2860486"> |
214 <a href="#id2817615"> |
215 2.1. The Interactive Interpreter |
215 2.1. The Interactive Interpreter |
216 </a> |
216 </a> |
217 </span> |
217 </span> |
218 </dt> |
218 </dt> |
219 <dt> |
219 <dt> |
220 <span class="section"> |
220 <span class="section"> |
221 <a href="#id2860659"> |
221 <a href="#id2817788"> |
222 2.2. |
222 2.2. |
223 <span class="emphasis"> |
223 <span class="emphasis"> |
224 <em> |
224 <em> |
225 ipython |
225 ipython |
226 </em> |
226 </em> |
231 </dt> |
231 </dt> |
232 </dl> |
232 </dl> |
233 </dd> |
233 </dd> |
234 <dt> |
234 <dt> |
235 <span class="section"> |
235 <span class="section"> |
236 <a href="#id2860784"> |
236 <a href="#id2817912"> |
237 3. Editing and running a python file |
237 3. Editing and running a python file |
238 </a> |
238 </a> |
239 </span> |
239 </span> |
240 </dt> |
240 </dt> |
241 <dt> |
241 <dt> |
242 <span class="section"> |
242 <span class="section"> |
243 <a href="#id2860890"> |
243 <a href="#id2818019"> |
244 4. Basic Datatypes and operators in Python |
244 4. Basic Datatypes and operators in Python |
245 </a> |
245 </a> |
246 </span> |
246 </span> |
247 </dt> |
247 </dt> |
248 <dd> |
248 <dd> |
249 <dl> |
249 <dl> |
250 <dt> |
250 <dt> |
251 <span class="section"> |
251 <span class="section"> |
252 <a href="#id2860925"> |
252 <a href="#id2818053"> |
253 4.1. Numbers |
253 4.1. Numbers |
254 </a> |
254 </a> |
255 </span> |
255 </span> |
256 </dt> |
256 </dt> |
257 <dt> |
257 <dt> |
258 <span class="section"> |
258 <span class="section"> |
259 <a href="#id2861055"> |
259 <a href="#id2818183"> |
260 4.2. Variables |
260 4.2. Variables |
261 </a> |
261 </a> |
262 </span> |
262 </span> |
263 </dt> |
263 </dt> |
264 <dt> |
264 <dt> |
265 <span class="section"> |
265 <span class="section"> |
266 <a href="#id2861102"> |
266 <a href="#id2818231"> |
267 4.3. Strings |
267 4.3. Strings |
268 </a> |
268 </a> |
269 </span> |
269 </span> |
270 </dt> |
270 </dt> |
271 <dt> |
271 <dt> |
272 <span class="section"> |
272 <span class="section"> |
273 <a href="#id2861297"> |
273 <a href="#id2818425"> |
274 4.4. Boolean |
274 4.4. Boolean |
275 </a> |
275 </a> |
276 </span> |
276 </span> |
277 </dt> |
277 </dt> |
278 </dl> |
278 </dl> |
279 </dd> |
279 </dd> |
280 <dt> |
280 <dt> |
281 <span class="section"> |
281 <span class="section"> |
282 <a href="#id2861325"> |
282 <a href="#id2818454"> |
283 5. The |
283 5. The |
284 <span class="strong"> |
284 <span class="strong"> |
285 <strong> |
285 <strong> |
286 while |
286 while |
287 </strong> |
287 </strong> |
290 </a> |
290 </a> |
291 </span> |
291 </span> |
292 </dt> |
292 </dt> |
293 <dt> |
293 <dt> |
294 <span class="section"> |
294 <span class="section"> |
295 <a href="#id2861363"> |
295 <a href="#id2818491"> |
296 6. The |
296 6. The |
297 <span class="strong"> |
297 <span class="strong"> |
298 <strong> |
298 <strong> |
299 if |
299 if |
300 </strong> |
300 </strong> |
303 </a> |
303 </a> |
304 </span> |
304 </span> |
305 </dt> |
305 </dt> |
306 <dt> |
306 <dt> |
307 <span class="section"> |
307 <span class="section"> |
308 <a href="#id2861432"> |
308 <a href="#id2818560"> |
309 7. |
309 7. |
310 <span class="strong"> |
310 <span class="strong"> |
311 <strong> |
311 <strong> |
312 raw_input() |
312 raw_input() |
313 </strong> |
313 </strong> |
315 </a> |
315 </a> |
316 </span> |
316 </span> |
317 </dt> |
317 </dt> |
318 <dt> |
318 <dt> |
319 <span class="section"> |
319 <span class="section"> |
320 <a href="#id2861586"> |
320 <a href="#id2818715"> |
321 8. |
321 8. |
322 <span class="strong"> |
322 <span class="strong"> |
323 <strong> |
323 <strong> |
324 int() |
324 int() |
325 </strong> |
325 </strong> |
358 <div class="section" title="1.Introduction"> |
358 <div class="section" title="1.Introduction"> |
359 <div class="titlepage"> |
359 <div class="titlepage"> |
360 <div> |
360 <div> |
361 <div> |
361 <div> |
362 <h2 class="title" style="clear: both"> |
362 <h2 class="title" style="clear: both"> |
363 <a name="id2617111"> |
363 <a name="id2574240"> |
364 </a> |
364 </a> |
365 1.Introduction |
365 1.Introduction |
366 </h2> |
366 </h2> |
367 </div> |
367 </div> |
368 </div> |
368 </div> |
542 <div class="section" title="2.The Python Interpreter"> |
542 <div class="section" title="2.The Python Interpreter"> |
543 <div class="titlepage"> |
543 <div class="titlepage"> |
544 <div> |
544 <div> |
545 <div> |
545 <div> |
546 <h2 class="title" style="clear: both"> |
546 <h2 class="title" style="clear: both"> |
547 <a name="id2860477"> |
547 <a name="id2817606"> |
548 </a> |
548 </a> |
549 2.The Python Interpreter |
549 2.The Python Interpreter |
550 </h2> |
550 </h2> |
551 </div> |
551 </div> |
552 </div> |
552 </div> |
554 <div class="section" title="2.1.The Interactive Interpreter"> |
554 <div class="section" title="2.1.The Interactive Interpreter"> |
555 <div class="titlepage"> |
555 <div class="titlepage"> |
556 <div> |
556 <div> |
557 <div> |
557 <div> |
558 <h3 class="title"> |
558 <h3 class="title"> |
559 <a name="id2860486"> |
559 <a name="id2817615"> |
560 </a> |
560 </a> |
561 2.1.The Interactive Interpreter |
561 2.1.The Interactive Interpreter |
562 </h3> |
562 </h3> |
563 </div> |
563 </div> |
564 </div> |
564 </div> |
721 <div class="section" title="2.2.ipython - An enhanced interactive Python interpreter"> |
721 <div class="section" title="2.2.ipython - An enhanced interactive Python interpreter"> |
722 <div class="titlepage"> |
722 <div class="titlepage"> |
723 <div> |
723 <div> |
724 <div> |
724 <div> |
725 <h3 class="title"> |
725 <h3 class="title"> |
726 <a name="id2860659"> |
726 <a name="id2817788"> |
727 </a> |
727 </a> |
728 2.2. |
728 2.2. |
729 <span class="emphasis"> |
729 <span class="emphasis"> |
730 <em> |
730 <em> |
731 ipython |
731 ipython |
822 <div class="section" title="3.Editing and running a python file"> |
822 <div class="section" title="3.Editing and running a python file"> |
823 <div class="titlepage"> |
823 <div class="titlepage"> |
824 <div> |
824 <div> |
825 <div> |
825 <div> |
826 <h2 class="title" style="clear: both"> |
826 <h2 class="title" style="clear: both"> |
827 <a name="id2860784"> |
827 <a name="id2817912"> |
828 </a> |
828 </a> |
829 3.Editing and running a python file |
829 3.Editing and running a python file |
830 </h2> |
830 </h2> |
831 </div> |
831 </div> |
832 </div> |
832 </div> |
923 <div class="section" title="4.Basic Datatypes and operators in Python"> |
923 <div class="section" title="4.Basic Datatypes and operators in Python"> |
924 <div class="titlepage"> |
924 <div class="titlepage"> |
925 <div> |
925 <div> |
926 <div> |
926 <div> |
927 <h2 class="title" style="clear: both"> |
927 <h2 class="title" style="clear: both"> |
928 <a name="id2860890"> |
928 <a name="id2818019"> |
929 </a> |
929 </a> |
930 4.Basic Datatypes and operators in Python |
930 4.Basic Datatypes and operators in Python |
931 </h2> |
931 </h2> |
932 </div> |
932 </div> |
933 </div> |
933 </div> |
957 <div class="section" title="4.1.Numbers"> |
957 <div class="section" title="4.1.Numbers"> |
958 <div class="titlepage"> |
958 <div class="titlepage"> |
959 <div> |
959 <div> |
960 <div> |
960 <div> |
961 <h3 class="title"> |
961 <h3 class="title"> |
962 <a name="id2860925"> |
962 <a name="id2818053"> |
963 </a> |
963 </a> |
964 4.1.Numbers |
964 4.1.Numbers |
965 </h3> |
965 </h3> |
966 </div> |
966 </div> |
967 </div> |
967 </div> |
1074 <div class="section" title="4.2.Variables"> |
1074 <div class="section" title="4.2.Variables"> |
1075 <div class="titlepage"> |
1075 <div class="titlepage"> |
1076 <div> |
1076 <div> |
1077 <div> |
1077 <div> |
1078 <h3 class="title"> |
1078 <h3 class="title"> |
1079 <a name="id2861055"> |
1079 <a name="id2818183"> |
1080 </a> |
1080 </a> |
1081 4.2.Variables |
1081 4.2.Variables |
1082 </h3> |
1082 </h3> |
1083 </div> |
1083 </div> |
1084 </div> |
1084 </div> |
1119 <div class="section" title="4.3.Strings"> |
1119 <div class="section" title="4.3.Strings"> |
1120 <div class="titlepage"> |
1120 <div class="titlepage"> |
1121 <div> |
1121 <div> |
1122 <div> |
1122 <div> |
1123 <h3 class="title"> |
1123 <h3 class="title"> |
1124 <a name="id2861102"> |
1124 <a name="id2818231"> |
1125 </a> |
1125 </a> |
1126 4.3.Strings |
1126 4.3.Strings |
1127 </h3> |
1127 </h3> |
1128 </div> |
1128 </div> |
1129 </div> |
1129 </div> |
1172 <div class="section" title="4.3.1.String operations"> |
1172 <div class="section" title="4.3.1.String operations"> |
1173 <div class="titlepage"> |
1173 <div class="titlepage"> |
1174 <div> |
1174 <div> |
1175 <div> |
1175 <div> |
1176 <h4 class="title"> |
1176 <h4 class="title"> |
1177 <a name="id2861154"> |
1177 <a name="id2818283"> |
1178 </a> |
1178 </a> |
1179 4.3.1.String operations |
1179 4.3.1.String operations |
1180 </h4> |
1180 </h4> |
1181 </div> |
1181 </div> |
1182 </div> |
1182 </div> |
1311 <div class="section" title="4.4.Boolean"> |
1311 <div class="section" title="4.4.Boolean"> |
1312 <div class="titlepage"> |
1312 <div class="titlepage"> |
1313 <div> |
1313 <div> |
1314 <div> |
1314 <div> |
1315 <h3 class="title"> |
1315 <h3 class="title"> |
1316 <a name="id2861297"> |
1316 <a name="id2818425"> |
1317 </a> |
1317 </a> |
1318 4.4.Boolean |
1318 4.4.Boolean |
1319 </h3> |
1319 </h3> |
1320 </div> |
1320 </div> |
1321 </div> |
1321 </div> |
1354 <div class="section" title="5.The while loop"> |
1354 <div class="section" title="5.The while loop"> |
1355 <div class="titlepage"> |
1355 <div class="titlepage"> |
1356 <div> |
1356 <div> |
1357 <div> |
1357 <div> |
1358 <h2 class="title" style="clear: both"> |
1358 <h2 class="title" style="clear: both"> |
1359 <a name="id2861325"> |
1359 <a name="id2818454"> |
1360 </a> |
1360 </a> |
1361 5.The |
1361 5.The |
1362 <span class="strong"> |
1362 <span class="strong"> |
1363 <strong> |
1363 <strong> |
1364 while |
1364 while |
1405 <div class="section" title="6.The if conditional"> |
1405 <div class="section" title="6.The if conditional"> |
1406 <div class="titlepage"> |
1406 <div class="titlepage"> |
1407 <div> |
1407 <div> |
1408 <div> |
1408 <div> |
1409 <h2 class="title" style="clear: both"> |
1409 <h2 class="title" style="clear: both"> |
1410 <a name="id2861363"> |
1410 <a name="id2818491"> |
1411 </a> |
1411 </a> |
1412 6.The |
1412 6.The |
1413 <span class="strong"> |
1413 <span class="strong"> |
1414 <strong> |
1414 <strong> |
1415 if |
1415 if |
1482 <div class="section" title="7.raw_input()"> |
1482 <div class="section" title="7.raw_input()"> |
1483 <div class="titlepage"> |
1483 <div class="titlepage"> |
1484 <div> |
1484 <div> |
1485 <div> |
1485 <div> |
1486 <h2 class="title" style="clear: both"> |
1486 <h2 class="title" style="clear: both"> |
1487 <a name="id2861432"> |
1487 <a name="id2818560"> |
1488 </a> |
1488 </a> |
1489 7. |
1489 7. |
1490 <span class="strong"> |
1490 <span class="strong"> |
1491 <strong> |
1491 <strong> |
1492 raw_input() |
1492 raw_input() |
1632 <div class="section" title="8.int() method"> |
1632 <div class="section" title="8.int() method"> |
1633 <div class="titlepage"> |
1633 <div class="titlepage"> |
1634 <div> |
1634 <div> |
1635 <div> |
1635 <div> |
1636 <h2 class="title" style="clear: both"> |
1636 <h2 class="title" style="clear: both"> |
1637 <a name="id2861586"> |
1637 <a name="id2818715"> |
1638 </a> |
1638 </a> |
1639 8. |
1639 8. |
1640 <span class="strong"> |
1640 <span class="strong"> |
1641 <strong> |
1641 <strong> |
1642 int() |
1642 int() |