Beginning Python: From Novice to Professional
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Berkeley, CA
Apress
2024
|
Ausgabe: | Fourth Edition |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | xxviii, 607 Seiten Diagramme |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV049940183 | ||
003 | DE-604 | ||
007 | t| | ||
008 | 241106s2024 xx |||| |||| 00||| eng d | ||
020 | |z 9798868801952 |9 979-8-8688-0195-2 | ||
035 | |a (DE-599)BVBBV049940183 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
049 | |a DE-523 | ||
082 | 0 | |a 005.133 |2 23 | |
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
084 | |a DAT 000 |2 stub | ||
100 | 1 | |a Hetland, Magnus Lie |e Verfasser |0 (DE-588)1048478750 |4 aut | |
245 | 1 | 0 | |a Beginning Python |b From Novice to Professional |c Magnus Lie Hetland, Fabio Nelli |
250 | |a Fourth Edition | ||
264 | 1 | |a Berkeley, CA |b Apress |c 2024 | |
300 | |a xxviii, 607 Seiten |b Diagramme | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
650 | 4 | |a Python | |
650 | 4 | |a Computer Science | |
650 | 4 | |a Python (Computer program language) | |
650 | 4 | |a Computer science | |
700 | 1 | |a Nelli, Fabio |0 (DE-588)1047481065 |4 aut | |
776 | 0 | 8 | |i Erscheint auch als |n Online-Ausgabe |z 979-8-8688-0196-9 |
856 | 4 | 2 | |m Digitalisierung Bibliothek HTW Berlin |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=035278427&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
943 | 1 | |a oai:aleph.bib-bvb.de:BVB01-035278427 |
Datensatz im Suchindex
_version_ | 1816446330522828800 |
---|---|
adam_text |
TABLE
OF
CONTENTS
THE
ON
GY NOW
L
WITH
AN
ARE
NOT
CATION,
OR
E
ABOUT
THE AUTHORS
XXI
ABOUT
THE
TECHNICAL REVIEWERS
XXIII
PREFACE
XXV
INTRODUCTION
XXVII
YY
CHAPTER
1: INSTANT
HACKING: THE BASICS
1
THE
INTERACTIVE INTERPRETER
2
ALGO
.
WHAT?
3
NUMBERS
AND EXPRESSIONS
3
HEXADECIMALS
OCTALS AND BINARY
5
VARIABLES
5
STATEMENTS
6
GETTING
INPUT FROM THE
USER
7
FUNCTIONS
8
MODULES
9
CMATH
AND COMPLEX NUMBERS
10
SAVING
AND EXECUTING YOUR
PROGRAMS
11
RUNNING
YOUR PYTHON
SCRIPTS FROM A COMMAND PROMPT
12
MAKING
YOUR
SCRIPTS BEHAVE LIKE NORMAL PROGRAMS
13
COMMENTS
14
STRINGS
14
PLAZA,
IC
AD
DES
S/
III
TABLE
OF
CONTENTS
SINGLE-QUOTED
STRINGS
AND ESCAPING QUOTES
14 WIDTH,
PRECISION, ANC
CONCATENATING
STRINGS
16 SIGNS,
ALIGNMENT, AN
STRING
REPRESENTATIONS,
STR AND REPR
16
STRING METHODS
LONG
STRINGS, RAW
STRINGS, AND BYTES
17
CENTER
SUMMARY
22
FIND
NEW
FUNCTIONS IN THIS
CHAPTER
23 LOWER
WHAT
NOW?
24 REPLACE
YY
CHAPTER
2:
LISTS AND BOLES
SEQUENCE
OVERVIEW
COMMON
SEQUENCE
OPERATIONS
25
25
26
SPLIT
STRIP
TRANSLATE
IS
MY STRING.
.
INDEXING
26
SLICING
28
SUMMARY
ADDING
SEQUENCES
30
NEW
FUNCTIONS IN TH
MULTIPLICATION
31
WHAT
NOW?
MEMBERSHIP
32
YY
CHAPTER
4: DICTIONI
LENGTH,
MINIMUM, AND MAXIMUM
33
DICTIONARY USES
LISTS:
PYTHON'S WORKHORSE
34 CREATING AND
USING I
THE
LIST FUNCTION
34 THE DICT FUNCTION
BASIC
LIST
OPERATIONS
34 BASIC
DICTIONARY OPC
LIST
METHODS
36
STRING FORMATTING WI
TUPLES:
IMMUTABLE SEQUENCES
43
DICTIONARY
METHODS.
SUMMARY
44
SUMMARY
NEW
FUNCTIONS IN THIS
CHAPTER
45
NEW
FUNCTIONS IN TH
WHAT
NOW?
45
WHAT NOW?
YY
CHAPTER 3: WORKING WITH
STRINGS
47
YYCHAPTER 5:
CONDITH
BASIC
STRING OPERATIONS
47
MORE ABOUT
PRINT AM
STRING
FORMATTING: THE SHORT
VERSION
47
PRINTING
MULTIPLE ARG
STRING
FORMATTING: THE LONG
VERSION
49
IMPORTING
SOMETHINI
REPLACEMENT
FIELD
NAMES
49
ASSIGNMENT
MAGIC.
BASIC
CONVERSIONS
50
IV
TABLE
OF
CONTENTS
14
WIDTH,
PRECISION, AND THOUSANDS
SEPARATORS
51
16
SIGNS,
ALIGNMENT, AND ZERO-PADDING
52
16
STRING
METHODS
54
17
CENTER
55
22
FIND
55
23
LOWER
57
24
REPLACE
58
25
SPLIT
58
25
STRIP
58
26
TRANSLATE
59
IS
MY STRING.
60
26
28
SUMMARY
60
30
NEW
FUNCTIONS IN
THIS CHAPTER
60
31
WHAT
NOW?
60
32
YY
CHAPTER 4:
DICTIONARIES: WHEN INDICES WON'T DO
61
33
DICTIONARY USES
61
34
CREATING AND USING DICTIONARIES
62
34
THE DID FUNCTION
62
34
BASIC DICTIONARY
OPERATIONS
63
36
STRING FORMATTING
WITH DICTIONARIES
64
43
DICTIONARY METHODS
65
44
SUMMARY
71
4S
NEW FUNCTIONS IN THIS CHAPTER
71
45
WHAT
NOW?
71
17
YYCHAPTER
5: CONDITIONALS, LOOPS,
AND SOME OTHER STATEMENTS
73
47
MORE
ABOUT PRINT AND IMPORT
73
47
PRINTING
MULTIPLE ARGUMENTS
73
IMPORTING
SOMETHING AS
SOMETHING ELSE
49
74
49
ASSIGNMENT
MAGIC
75
50
TABLE
OF CONTENTS
75
77
77
78
78
80
80
81
82
83
83
83
88
89
89
90
91
91
93
96
96
98
98
99
100
102
104
104
SEQUENCE
UNPACKING
CHAINED
ASSIGNMENTS
AUGMENTED
ASSIGNMENTS
BLOCKS:
THE JOY OF
INDENTATION
MULTILINE
EDITING
CONDITIONS
AND CONDITIONAL STATEMENTS
SO
THAT'S WHAT THOSE BOOLEAN VALUES ARE FOR
CONDITIONAL
EXECUTION AND THE IF STATEMENT
ELSE
CLAUSES
ELIF
CLAUSES
NESTING
BLOCKS
MORE
COMPLEX CONDITIONS
ASSERTIONS
LOOPS
WHILE
LOOPS
FOR
LOOPS
ITERATING
OVER
DICTIONARIES
SOME
ITERATION UTILITIES
BREAKING
OUT OF LOOPS
ELSE
CLAUSES IN
LOOPS
COMPREHENSIONS
-
SLIGHTLY
LOOPY
AND
THREE FOR
THE ROAD
NOTHING
HAPPENED'
DELETING
WITH DEL
EXECUTING
AND EVALUATING STRINGS WITH EXEC AND EVAL
SUMMARY
NEW
FUNCTIONS IN THIS CHAPTER
WHAT
NOW?
YY
CHAPTER
6:
ABSTRACT
LAZINESS IS A VIRTUE
ABSTRACTION
AND
STRU
CREATING
YOUR OWN F
DOCUMENTING
FUNCTIR
FUNCTIONS
THAT
AREN'T
THE
MAGIC
OF PARAMI
WHERE
DO THE
VALUES
CAN
I CHANGE A PARA'
WHY
WOULD I
WANT TO
WHAT
IF MY
PARAMEH
KEYWORD
PARAMETERS
COLLECTING
PARAMETER
REVERSING
THE PROCER
PARAMETER
PRACTICE
SCOPING
RECURSION
TWO
CLASSICS:
FACTOD
MOTHER
CLASSIC:
BINS
SUMMARY
NEW
FUNCTIONS IN TB
WHAT
NOW?
YY
CHAPTER 7:
MORE AL
THE
MAGIC OF OBJECT
POLYMORPHISM
POLYMORPHISM
AND IA
POLYMORPHISM
COME
ENCAPSULATION
INHERITANCE
VI
TABLE
OF CONTENTS
.75
YYCHAPTER
6: ABSTRACTION
105
.
.77
LAZINESS
IS A VIRTUE
105
.
.77
ABSTRACTION
AND STRUCTURE
106
.78
CREATING
YOUR OWN FUNCTIONS
106
.78
DOCUMENTING FUNCTIONS
108
.80
FUNCTIONS THAT AREN'T REALLY FUNCTIONS
108
.80
THE MAGIC OF PARAMETERS
109
.81
WHERE DO THE VALUES
COME FROM?
109
.82
CAN I CHANGE A PARAMETER?
110
.83
WHY WOULD I WANT TO MODIFY MY PARAMETERS?
111
.
83
WHAT
IF MY PARAMETER IS IMMUTABLE?
114
.
83
KEYWORD
PARAMETERS AND DEFAULTS
114
.88
COLLECTING
PARAMETERS
117
.89
REVERSING
THE PROCESS
119
.89
PARAMETER
PRACTICE
121
.
90
SCOPING
122
.
91
RECURSION
125
.
91
TWO
CLASSICS: FACTORIAL AND POWER
126
.
93
.96
ANOTHER
CLASSIC: BINARY SEARCH
127
96
SUMMARY
130
98
NEW
FUNCTIONS IN THIS CHAPTER
131
MA
WHAT NOW?
131
.99
YY
CHAPTER 7: MORE ABSTRACTION
133
100
THE MAGIC
OF OBJECTS
133
02
POLYMORPHISM
134
104
POLYMORPHISM AND METHODS
135
104
POLYMORPHISM COMES IN MANY FORMS
136
ENCAPSULATION
137
INHERITANCE
138
VII
TABLE
OF CONTENTS
CLASSES
139
WHAT
IS A
CLASS, EXACTLY?
139
MAKING
YOUR OWN CLASSES
139
ATTRIBUTES,
FUNCTIONS,
AND METHODS
140
PRIVACY
REVISITED
141
THE
CLASS
NAMESPACE
142
SPECIFYING
A SUPERCLASS
144
INVESTIGATING
INHERITANCE
144
MULTIPLE
SUPERCLASSES
145
INTERFACES
AND
INTROSPECTION
146
SOME
THOUGHTS ON
OBJECT-ORIENTED DESIGN
149
SUMMARY
150
NEW
FUNCTIONS IN THIS
CHAPTER
151
WHAT
NOW?
151
YY
CHAPTER
8: EXCEPTIONS
153
WHAT
IS AN
EXCEPTION?
153
MAKING
THINGS
GO WRONG
. YOUR WAY
153
THE
RAISE STATEMENT
154
CUSTOM
EXCEPTION CLASSES
155
CATCHING
EXCEPTIONS
155
LOOK,
MA, NO
ARGUMENTS'
158
MORE
THAN ONE
EXCEPT CLAUSE
160
CATCHING
TWO
EXCEPTIONS WITH
ONE BLOCK
161
CATCHING
THE
OBJECT
162
A
REAL
CATCHALL
162
WHEN
ALL IS WELL
163
AND
FINALLY.
165
EXCEPTIONS
AND
FUNCTIONS
165
THE
ZEN OF
EXCEPTIONS
166
NOT
ALL THAT
EXCEPTIONAL
168
A
QUICK
SUMMARY
,
NEW
FUNCTIONS IN TH
WHAT
NOW?
YY
CHAPTER
9: MAGIC
I
CONSTRUCTORS
OVERRIDING
METHODS
CALLING
THE UNBOUND
USING
THE SUPER FUN
ITEM
ACCESS
THE
BASIC
SEQUENCE
SUBCLASSING
LIST, DID
MORE
MAGIC
PROPERTIES
THE
PROPERTY FUNCTIC
STATIC
METHODS AND I
_GETATTR_,
_SETA
ITERATORS
THE
ITERATOR PROTOCOL
MAKING
SEQUENCES 1
GENERATORS
MAKING
A
GENERATOR
A
RECURSIVE GENERAL
GENERATORS
IN
GENER
GENERATOR
METHODS.
SIMULATING
GENERATE
THE
EIGHT QUEENS
GENERATORS
AND
BACL
THE
PROBLEM
STATE
REPRESENTATIOI
FINDING
CONFLICTS
VIII
TABLE
OF CONTENTS
A
QUICK
SUMMARY
169
NEW
FUNCTIONS IN THIS CHAPTER
170
WHAT
NOW?
170
YY
CHAPTER
9: MAGIC METHODS, PROPERTIES, AND ITERATORS
171
CONSTRUCTORS
171
OVERRIDING
METHODS IN GENERAL, AND
THE CONSTRUCTOR IN PARTICULAR
172
CALLING
THE UNBOUND SUPERCLASS
CONSTRUCTOR
174
USING
THE SUPER FUNCTION
175
ITEM
ACCESS
176
THE
BASIC SEQUENCE AND
MAPPING PROTOCOL
177
SUBCLASSING
LIST,
DICT, AND STR
179
MORE
MAGIC
180
PROPERTIES
180
THE
PROPERTY FUNCTION
181
STATIC
METHODS AND CLASS METHODS
183
_
GETATTR_,
_SETATTR_, AND FRIENDS
184
ITERATORS
185
THE
ITERATOR PROTOCOL
185
MAKING
SEQUENCES FROM
ITERATORS
186
GENERATORS
187
MAKING
A GENERATOR
187
A
RECURSIVE GENERATOR
188
GENERATORS
IN GENERAL
190
GENERATOR
METHODS
190
SIMULATING
GENERATORS
191
THE
EIGHT QUEENS
192
GENERATORS
AND BACKTRACKING
192
THE
PROBLEM
193
STATE
REPRESENTATION
194
FINDING
CONFLICTS
194
139
139
139
140
141
142
144
144
145
146
149
150
151
151
1
53
153
153
154
155
1
55
158
160
R4
162
162
163
165
1
65
1
66
1
68
IX
TABLE
OF CONTENTS
THE
BASE CASE
194
THE
RECURSIVE CASE
196
WRAPPING
IT UP
197
SUMMARY
198
NEW
FUNCTIONS IN
THIS CHAPTER
199
WHAT
NOW?
199
YY
CHAPTER 10: BATTERIES INCLUDED
201
MODULES
201
MODULES
ARE PROGRAMS
201
MODULES
ARE USED TO DEFINE
THINGS
203
MAKING
YOUR MODULES AVAILABLE
205
PACKAGES
207
EXPLORING
MODULES
208
WHAT'S
IN
A MODULE?
208
GETTING
HELP WITH HELP
210
DOCUMENTATION
211
USE
THE SOURCE
211
THE
STANDARD LIBRARY: A FEW FAVORITES
212
SYS
212
OS
214
FILEINPUT
216
SETS,
HEAPS, AND
DEQUES
218
TIME
223
RANDOM
225
SHELVE
AND JSON
229
RE
232
OTHER
INTERESTING STANDARD MODULES
245
SUMMARY
247
NEW
FUNCTIONS IN THIS
CHAPTER
248
WHAT
NOW?
248
YY
CHAPTER
11:
FILES A
OPENING FILES
FILE
MODES
THE
BASIC
FILE METHC
READING
AND
WRITING
PIPING
OUTPUT
READING
AND
WRITING
CLOSING
FILES
USING
THE BASIC
FILE
I
ITERATING
OVER FILE CC
ONE
CHARACTER
(OR BY
ONE
LINE AT A
TIME
READING
EVERYTHING
LAZY
LINE ITERATION
W
FILE
ITERATORS
CSV
FILES
XML
FILES
HTML
FILES
JSON
FILES
APACHE
PARQUET
SUMMARY
NEW
FUNCTIONS
IN THI
WHAT
NOW?
YY
CHAPTER
12: GRAPHL
BUILDING A SAMPLE G
INITIAL
EXPLORATION
LAYOUT
EVENT
HANDLING
THE
FINAL PROGRAM
TABLE
OF CONTENTS
YY
CHAPTER
11: FILES AND STUFF
249
OPENING
FILES
249
FILE
MODES
249
THE
BASIC FILE METHODS
25O
READING
AND WRITING
251
PIPING
OUTPUT
252
READING
AND WRITING LINES
253
CLOSING
FILES
254
USING
THE BASIC FILE METHODS
255
ITERATING
OVER FILE CONTENTS
256
ONE
CHARACTER (OR BYTE) AT A TIME
256
ONE
LINE AT A TIME
259
READING
EVERYTHING
259
LAZY
LINE ITERATION WITH FILEINPUT
261
FILE
ITERATORS
261
CSV
FILES
263
XML
FILES
265
HTML
FILES
268
JSON
FILES
27O
APACHE
PARQUET
271
SUMMARY
272
NEW
FUNCTIONS IN THIS CHAPTER
273
WHAT
NOW?
273
YY
CHAPTER 12: GRAPHICAL USER INTERFACES
275
BUILDING
A SAMPLE GUI APPLICATION
275
INITIAL
EXPLORATION
276
LAYOUT
279
EVENT
HANDLING
281
THE
FINAL PROGRAM
282
194
196
197
198
199
199
201
201
201
203
205
207
208
208
210
211
211
212
212
214
216
218
223
225
229
232
245
!
47
248
248
XI
TABLE
OF CONTENTS
USING
SOMETHING ELSE
284 MULTIPLE CONNECTIONS
SUMMARY
284
ENHANCE AN
HTTP SAP
WHAT
NOW?
284
ASYNCHRONOUS
U0
WC
YY
CHAPTER 13: DATABASE SUPPORT
285
TWISTED
THE
PYTHON DATABASE API
285
DOWNLOADING
AND INEL
GLOBAL
VARIABLES
286
WRITING
A TWISTED SER
EXCEPTIONS
287
SUMMARY
CONNECTIONS
AND CURSORS
287
WHAT
NOW?
TYPES
289
YY
CHAPTER
15: PYTHO,
SQLITE
AND
PYSQLITE
290
SCREEN
SCRAPING.
4
GETTING
STARTED 291
TIDY AND
XHTML PAL
A
SAMPLE DATABASE APPLICATION
291
WHAT'S
TIDY?
CREATING
AND POPULATING TABLES
293
GETTING
TIDY.
SEARCHING
AND
DEALING WITH RESULTS
294
BUT WHY
)(HTML?
SQL
ALCHEMY
295
USING
HTPALPARSER.4
A
DATABASE IN A CONTAINER WITH DOCKER
295
BEAUTIFUL
SOUP
SETTING
UP A POSTGRESQL DATABASE WITH DOCKER
296
DYNAMIC WEB
PA
USING
A POSTGRESQL DATABASE WITH PYTHON
301
STEP 1:
PREPARING
USING
MONGO, A NO-SQL DATABASE WITH DOCKER AND PYTHON
304
STEP
2: ADDING
THE
SUMMARY
306
STEP
3: SETTING THE
NEW
FUNCTIONS IN THIS CHAPTER
307
CGI SECURITY RISKA
WHAT
NOW?
307
A
SIMPLE CGI
YY
CHAPTER 14: NETWORK
PROGRAMMING
309
DEBUGGING
WITH
A
COUPLE OF NETWORKING MODULES
309
USING
THE CGI
M
A
SIMPLE FORM
THE
SOCKET MODULE
310
THE
URILIB3 MODULE
312
USING
A WEB
F
OTHER
MODULES
SOCKETSERVER
AND HTTP.SERVER
313
314
OTHER
WEB
I I
I-,
WEB
SERVICES:
RSS
AND FRIENDS.
REMOTE
PROCEDURE'
SOAP
XII
84
P.84
284
85
85
286
287
287
289
90
291
291
293
294
295
95
296
301
304
I06
$07
307
69
L09
310
312
313
14
TABLE
OF CONTENTS
MULTIPLE
CONNECTIONS
316
ENHANCE
AN HTTP SERVER
WITH SOCKETSERVER FORKING AND THREADING
317
ASYNCHRONOUS
I/O
WITH ASYNCIO
318
TWISTED
320
DOWNLOADING
AND INSTALLING TWISTED
320
WRITING
A TWISTED SERVER
320
SUMMARY
324
WHAT
NOW?
324
YY
CHAPTER
15: PYTHON AND THE WEB
325
SCREEN
SCRAPING
325
TIDY
AND
XHTML PARSING
326
WHAT'S
TIDY?
326
GETTING
TIDY
328
BUT
WHY XHTML?
328
USING
HTMLPARSER
329
BEAUTIFUL
SOUP
330
DYNAMIC
WEB
PAGES WITH CGI
331
STEP
1: PREPARING THE WEB SERVER
331
STEP
2: ADDING THE POUND BANG LINE
333
STEP
3: SETTING THE FILE PERMISSIONS
333
CGI
SECURITY RISKS
334
A
SIMPLE CGI SCRIPT
334
DEBUGGING
WITH CGITB
335
USING
THE CGI MODULE
336
A
SIMPLE FORM
338
USING
A WEB FRAMEWORK
339
OTHER
WEB APPLICATION FRAMEWORKS
340
WEB
SERVICES: SCRAPING
DONE RIGHT
341
RSS
AND FRIENDS
341
REMOTE
PROCEDURE CALLS
WITH XML-RPC
342
SOAP
343
TABLE
OF
CONTENTS
SUMMARY
343
SUMMARY
NEW
FUNCTIONS IN
THIS CHAPTER
343 NEW FUNCTIONS
IN THI
WHAT
NOW?
343
WHAT NOW?
YY
CHAPTER 16:
TESTING, 1-2-3
345 YYCHAPTER
18: PACKAI
TEST
FIRST,
CODE LATER
345
PACKAGES AND PACKS
PRECISE
REQUIREMENT SPECIFICATION
345
SETUPTOOLS
PLANNING
FOR
CHANGE
347
FLIT
THE
1-2-3 (AND
4) OF TESTING
347
CREATING
STAND-ALOE
TOOLS
FOR
TESTING
348
VIRTUAL
ENVIRONMENT
DOCTEST
348
SUMMARY
UNITTEST
350
NEW
FUNCTIONS IN TILL
BEYOND
UNIT TESTS
354
WHAT
NOW?
SOURCE
CODE
CHECKING WITH PYLINT
354
YY
CHAPTER
19: PLAYFUL
PROFILING
356
SUMMARY
358
WHY
PLAYFUL?
NEW
FUNCTIONS IN THIS
CHAPTER
358
THE
JUJITSU
OF PROGRI
WHAT
NOW?
358
PROTOTYPING
YY
CHAPTER 17:
EXTENDING PYTHON
359
DEVELOPING
WITH AN I
THE
BEST OF BOTH
WORLDS
359
CONFIGURATION
THE
REALLY EASY WAY:
JYTHON AND IRONPYTHON
360
EXTRACTING
CONSTANTS
CONFIGURATION
FILES.
WRITING
C
EXTENSIONS
368
LOGGING
A
SWIG
OF . SWIG
369
WHAT
DOES IT DO?
371
IF
YOU CAN'T BE
BOTH
I
PREFER
PI
371
IF YOU WANT TO LEARN
THE
INTERFACE FILE
372
A
QUICK
SUMMARY.
RUNNING
SWIG
372
WHAT NOW?
COMPILING,
LINKING,
AND USING
372
YYCHAPTER
20: PROJEC
HACKING
IT
ON YOUR OWN
375
WHAT'S THE
PROBLEM'
REFERENCE
COUNTING
375
USEFUL
TOOLS
A
FRAMEWORK
FOR EXTENSIONS
376
PREPARATIONS
XIV
.343
.343
.343
.345
.
345
.345
.
347
.347
.348
.
348
.
350
.354
.354
.356
.358
.
358
.358
359
.359
.360
.368
.
L369
.371
.371
.372
.
372
.372
.375
.375
.376
TABLE
OF CONTENTS
SUMMARY
377
NEW
FUNCTIONS IN THIS CHAPTER
378
WHAT
NOW?
378
YY
CHAPTER 18: PACKAGING AND DISTRIBUTING YOUR
PROGRAMS
379
PACKAGES
AND PACKAGING
379
SETUPTOOLS
380
FLIT
383
CREATING
STAND-ALONE APPLICATIONS
385
VIRTUAL
ENVIRONMENTS AND
DEPENDENCY MANAGEMENT
386
SUMMARY
389
NEW
FUNCTIONS IN THIS
CHAPTER
389
WHAT
NOW?
389
YY
CHAPTER
19: PLAYFUL PROGRAMMING
391
WHY
PLAYFUL?
391
THE
JUJITSU
OF PROGRAMMING
391
PROTOTYPING
392
DEVELOPING
WITH
AN IDE: SPYDER
393
CONFIGURATION
396
EXTRACTING
CONSTANTS
396
CONFIGURATION
FILES
396
LOGGING
400
IF
YOU
CAN'T BE BOTHERED
402
IF
YOU WANT TO LEARN MORE
403
A
QUICK SUMMARY
403
WHAT
NOW?
404
YY
CHAPTER 20: PROJECT 1: INSTANT MARKUP
405
WHAT'S
THE PROBLEM?
405
USEFUL
TOOLS
406
PREPARATIONS
406
RV
TABLE
OF
CONTENTS
YY
CHAPTER
22:
PROJECT
WHAT'S THE
PROBLEM?
USEFUL
TOOLS
PREPARATIONS
FIRST
IMPLEMENTATION
IMPLEMENTING
A SIMI
TRYING
OUT THE
FIRST IR
SECOND
IMPLEMENTAL
CREATING
THE
CLIENT IN
RAISING
EXCEPTIONS
VALIDATING
FILENAMES
TRYING
THE SECOND IM
FURTHER
EXPLORATION
WHAT
NOW?
YY
CHAPTER 23:
PROJECT
WHAT'S THE
PROBLEM?
USEFUL
TOOLS
PREPARATIONS
FIRST
IMPLEMENTATION
SECOND
IMPLEMENTAL
FURTHER
EXPLORATION
WHAT
NOW?
YY
CHAPTER 24:
PROJECT
WHAT'S
THE PROBLEM?
USEFUL
TOOLS
PYGAME
PYGAME.LOCALS
PYGAME.DISPLAY
PYGAME.FONT
PYGAME.SPRITE
FIRST
IMPLEMENTATION
407
FINDING
BLOCKS OF TEXT
407
ADDING
SOME MARKUP
409
SECOND
IMPLEMENTATION
412
HANDLERS
413
A
HANDLER
SUPERCLASS
414
RULES
415
A
RULE SUPERCLASS
416
FILTERS
416
THE
PARSER
417
CONSTRUCTING
THE
RULES AND FILTERS
418
PUTTING
IT ALL
TOGETHER
421
FURTHER
EXPLORATION
425
WHAT
NOW?
426
YY
CHAPTER 21:
PROJECT 2: XML FOR
ALL OCCASIONS
427
WHAT'S
THE PROBLEM?
427
USEFUL
TOOLS
428
PREPARATIONS
429
FIRST
IMPLEMENTATION
430
CREATING
A
SIMPLE CONTENT HANDLER
430
CREATING
HTML PAGES
433
SECOND
IMPLEMENTATION
436
A
DISPATCHER
MIX-IN CLASS
436
FACTORING
OUT THE HEADER,
FOOTER, AND DEFAULT HANDLING
438
SUPPORT
FOR DIRECTORIES
439
THE
EVENT
HANDLERS
439
FURTHER
EXPLORATION
442
WHAT
NOW?
442
XVI
TABLE
OF CONTENTS
.
407
407
409
.
412
413
414
415
416
416
417
418
421
.
425
426
.
427
.
427
.
428
.
429
.
430
430
433
.
436
436
.438
439
439
.
442
442
YY
CHAPTER
22: PROJECT 3:
FILE SHARING WITH
XML-RPC
443
WHAT'S
THE PROBLEM?
443
USEFUL
TOOLS
444
PREPARATIONS
445
FIRST
IMPLEMENTATION
445
IMPLEMENTING
A SIMPLE NODE
446
TRYING
OUT
THE FIRST IMPLEMENTATION
450
SECOND
IMPLEMENTATION
453
CREATING
THE CLIENT INTERFACE
453
RAISING
EXCEPTIONS
454
VALIDATING
FILENAMES
455
TRYING
THE SECOND IMPLEMENTATION
458
FURTHER
EXPLORATION
460
WHAT
NOW?
461
YY
CHAPTER
23: PROJECT 4: FILE
SHARING II-NOW WITH GUI!
463
WHAT'S
THE PROBLEM?
463
USEFUL
TOOLS
463
PREPARATIONS
463
FIRST
IMPLEMENTATION
464
SECOND
IMPLEMENTATION
465
FURTHER
EXPLORATION
468
WHAT
NOW?
468
YY
CHAPTER 24: PROJECT 5:
DO-IT-YOURSELF ARCADE GAME
469
WHAT'S
THE
PROBLEM?
469
USEFUL
TOOLS
470
PYGAME
470
PYGAME.LOCALS
470
PYGAME.DISPLAY
470
PYGAME.FONT
471
PYGAME.SPRITE
471
XVII
TABLE
OF
CONTENTS
PYGAME.MOUSE
471
GETTING
STARTED
WITH
I
PYGAME.EVENT
471
A
FEW
STEPS
FORWARD
PYGAME.
IMAGE
472
ADDING A
DATABASE
.
PREPARATIONS
472
FURTHER
EXPLORATION.
FIRST
IMPLEMENTATION
473
WHAT NOW?
SECOND
IMPLEMENTATION
476
IIICHAPTER
28:
ACTIVITY
FURTHER
EXPLORATION
485
THE
ASYNCIO
LIBRARY.
WHAT
NOW?
485
BASIC
CONCEPTS
OF AS
OICHAPTER
25: ACTIVITY
1: DATA ANALYSIS
WITH PANDAS,
MATPLOTLIB,
AND SEABORN
487
PYCHARM
JUPYTER
NOTEBOOK
487
GETTING
STARTED
WITH
THE
PANDAS
LIBRARY
492
USING
A
QUEUE
IN ASY
THE
MATPLOTLIB AND
SEABORN LIBRARIES
493
EXTENDING
WITH
AIOHT
OUR
DATA
SOURCE: KAGGLE
493
FURTHER
EXPLORATION.
LOADING
THE TITANIC
DATA SET
495
WHAT NOW?
DATA
ANALYSIS: EXPLORING
THE TITANIC DATA
SET
497
MICHAPTER
29:
ACTIVIT
FURTHER
EXPLORATION
504
WEB
SCRAPING
WHAT
NOW?
504
THE
REQUESTS
AND BR
IICHAPTER
26: ACTIVITY 2:
MACHINE
LEARNING WITH
SCIKIT-LEARN
505
GETTING
STARTED
WITH
WHAT
IS MACHINE
LEARNING?
505
EXCEPTION
HANDLING
THE
SCIKIT-LEARN LIBRARY
506
FURTHER
EXPLORATION.
THE
CLASSIFICATION PROBLEM
506
WHAT
NOW?
DATA
ANALYSIS
BEFORE THE
CLASSIFICATION
507
APPENDIX
A: THE
SHO
MODEL
TRAINING FOR
CLASSIFICATION
511
APPENDIX
B:
PYTHON
THE
REGRESSION
PROBLEM
FURTHER
EXPLORATION
512
516
APPENDIX
C: DEVELOP
WHAT
NOW?
516
APPENDIX
D: REMOVH
IIICHAPTER
27:
ACTIVITY 3:
BUILDING A
WEB APP WITH
FLASK
517
INDEX
FLASK:
A
MICRO-FRAMEWORK
FOR
WEB APPLICATIONS
517
JUPYTERLAB
518
XVIII
TABLE
OF CONTENTS
471
471
472
472
473
476
485
485
487
487
492
493
493
495
497
504
504
505
505
506
506
507
511
512
516
516
.
517
517
518
GETTING
STARTED WITH
FLASK
520
A
FEW STEPS
FORWARD
522
ADDING
A DATABASE
528
FURTHER
EXPLORATION
535
WHAT
NOW?
535
ILCHAPTER
28: ACTIVITY 4: ASYNCHRONOUS PROGRAMMING
WITH ASYNCIO
537
THE
ASYNCIO LIBRARY
537
BASIC
CONCEPTS OF
ASYNCIO
537
PYCHARM
538
GETTING
STARTED WITH ASYNCIO
540
USING
A QUEUE IN ASYNCHRONOUS PROGRAMMING
543
EXTENDING
WITH AIOHTTP
544
FURTHER
EXPLORATION
546
WHAT
NOW?
546
"'CHAPTER
29: ACTIVITY 5: WEB SCRAPING WITH REQUESTS
AND BEAUTIFULSOUP
547
WEB
SCRAPING
547
THE
REQUESTS AND BEAUTIFULSOUP
LIBRARIES
548
GETTING
STARTED WITH
REQUESTS AND BEAUTIFULSOUP
548
EXCEPTION
HANDLING AND
DATA SAVING
553
FURTHER
EXPLORATION
556
WHAT
NOW?
556
APPENDIX
A: THE SHORT VERSION
557
APPENDIX
B: PYTHON REFERENCE
565
APPENDIX
C: DEVELOPMENT TOOLS FOR PYTHON
581
APPENDIX
D: REMOVING DEAD BATTERIES
591
INDEX
593
XIX |
any_adam_object | 1 |
author | Hetland, Magnus Lie Nelli, Fabio |
author_GND | (DE-588)1048478750 (DE-588)1047481065 |
author_facet | Hetland, Magnus Lie Nelli, Fabio |
author_role | aut aut |
author_sort | Hetland, Magnus Lie |
author_variant | m l h ml mlh f n fn |
building | Verbundindex |
bvnumber | BV049940183 |
classification_rvk | ST 250 |
classification_tum | DAT 000 |
ctrlnum | (DE-599)BVBBV049940183 |
dewey-full | 005.133 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.133 |
dewey-search | 005.133 |
dewey-sort | 15.133 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
edition | Fourth Edition |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>00000nam a2200000 c 4500</leader><controlfield tag="001">BV049940183</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="007">t|</controlfield><controlfield tag="008">241106s2024 xx |||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="z">9798868801952</subfield><subfield code="9">979-8-8688-0195-2</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV049940183</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-523</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.133</subfield><subfield code="2">23</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">DAT 000</subfield><subfield code="2">stub</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Hetland, Magnus Lie</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1048478750</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Beginning Python</subfield><subfield code="b">From Novice to Professional</subfield><subfield code="c">Magnus Lie Hetland, Fabio Nelli</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">Fourth Edition</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Berkeley, CA</subfield><subfield code="b">Apress</subfield><subfield code="c">2024</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">xxviii, 607 Seiten</subfield><subfield code="b">Diagramme</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Python</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Computer Science</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Python (Computer program language)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Computer science</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Nelli, Fabio</subfield><subfield code="0">(DE-588)1047481065</subfield><subfield code="4">aut</subfield></datafield><datafield tag="776" ind1="0" ind2="8"><subfield code="i">Erscheint auch als</subfield><subfield code="n">Online-Ausgabe</subfield><subfield code="z">979-8-8688-0196-9</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung Bibliothek HTW Berlin</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=035278427&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="943" ind1="1" ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-035278427</subfield></datafield></record></collection> |
id | DE-604.BV049940183 |
illustrated | Not Illustrated |
indexdate | 2024-11-22T17:56:50Z |
institution | BVB |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-035278427 |
open_access_boolean | |
owner | DE-523 |
owner_facet | DE-523 |
physical | xxviii, 607 Seiten Diagramme |
publishDate | 2024 |
publishDateSearch | 2024 |
publishDateSort | 2024 |
publisher | Apress |
record_format | marc |
spelling | Hetland, Magnus Lie Verfasser (DE-588)1048478750 aut Beginning Python From Novice to Professional Magnus Lie Hetland, Fabio Nelli Fourth Edition Berkeley, CA Apress 2024 xxviii, 607 Seiten Diagramme txt rdacontent n rdamedia nc rdacarrier Python Computer Science Python (Computer program language) Computer science Nelli, Fabio (DE-588)1047481065 aut Erscheint auch als Online-Ausgabe 979-8-8688-0196-9 Digitalisierung Bibliothek HTW Berlin application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=035278427&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Hetland, Magnus Lie Nelli, Fabio Beginning Python From Novice to Professional Python Computer Science Python (Computer program language) Computer science |
title | Beginning Python From Novice to Professional |
title_auth | Beginning Python From Novice to Professional |
title_exact_search | Beginning Python From Novice to Professional |
title_full | Beginning Python From Novice to Professional Magnus Lie Hetland, Fabio Nelli |
title_fullStr | Beginning Python From Novice to Professional Magnus Lie Hetland, Fabio Nelli |
title_full_unstemmed | Beginning Python From Novice to Professional Magnus Lie Hetland, Fabio Nelli |
title_short | Beginning Python |
title_sort | beginning python from novice to professional |
title_sub | From Novice to Professional |
topic | Python Computer Science Python (Computer program language) Computer science |
topic_facet | Python Computer Science Python (Computer program language) Computer science |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=035278427&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT hetlandmagnuslie beginningpythonfromnovicetoprofessional AT nellifabio beginningpythonfromnovicetoprofessional |