Introduction to: Computers & Programming: Input and Output ...
嚜澠ntroduction to:
Computers & Programming:
Input and Output (IO)
Adam Meyers
New York University
Intro to: Computers & Programming:
Loops in Python
V22.0002-001
Summary
? What is Input and Ouput?
? What kinds of Input and Output have we covered so far?
每 print (to the console)
每 input (from the keyboard)
? File handling
每 input from files
每 output to files
每 Text files vs. 'pickled' binary files
? URL handling
Intro to: Computers & Programming:
Loops in Python
V22.0002-001
Input
? Input is any information provided to the program
每 Keyboard input
每 Mouse input
每 File input
每 Sensor input (microphone, camera, photo cell, etc.)
? Output is any information (or effect) that a
program produces:
每 sounds, lights, pictures, text, motion, etc.
每 on a screen, in a file, on a disk or tape, etc.
Intro to: Computers & Programming:
Loops in Python
V22.0002-001
Types of Input Covered in This Class
? So Far
每 Input: keyboard input only
每 Output: graphical and text output transmitted to the
computer screen
? This Unit expands our repertoire to include:
每 File Input 每 Python can read in the contents of files
每 File Output 每 Python can write text to files
Intro to: Computers & Programming:
Loops in Python
V22.0002-001
Files
? File = Named Data Collection stored on memory device
每 Different types of data: text, binary, etc
每 Accessible by name or address
每 Has start and end point
每 Program can read, created, modified, (and do other things to)
files
? Text file can be treated like a (big) string
每 Human readable
每 ASCII/UTF-8/etc. encoding
每 Can be plain text or can contain markup (e.g., html)
? Binary files: not human readable, usually require specific
programs to read
Intro to: Computers & Programming:
Loops in Python
V22.0002-001
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- input and output calculator
- input and output table calculator
- introduction to java programming and data structures
- java input and output stream
- java input and output file
- input and output equations
- input and output function math
- input and output math solver
- input and output equation
- input and output in math
- input and output equation calculator
- input and output tables