Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Python command line_14_12_2020
1. BVRIT HYDERABAD College of Engineering for Women
Python Programming
By
M Dyva Sugnana Rao
Asst. Professor
Department of Computer Science and Engineering
2. BVRIT HYDERABAD College of Engineering for Women
Name of the Course Python Programming
Course Code CS601PC
Year & Semester B.Tech VI Year I Sem
Section CSE - A
Name of the Faculty M Dyva Sugnana Rao
Lecture Hour | Date 02 | 14 December 2020
Name of the Topic Command Line Arguments
Course Outcome(s) Able use Command Line Arguments
4. Command Line Arguments
The arguments that are given after the name of the program in the
command line shell of the operating system are known as Command
Line Arguments.
5. sys.argv
The sys module provides functions and variables used to manipulate
different parts of the Python runtime environment.
It is a list of command line arguments.
len(sys.argv) provides the number of command line arguments.
sys.argv[0] is the name of the current Python script.
7. Data Persistence
it continues to exist even after the application has ended. Thus, data
stored in a non-volatile storage medium such as, a disk file is a
persistent data storage.
8.
9. Sr.No.Name Description
1 pickle Python specific serialization library
2 marshal Library used internally for serialization
3 shelve Pythonic object persistence
4 dbm library offering interface to Unix database
5 csv library for storage and retrieval of Python
data to CSV format
6 json Library for serialization to universal JSON
format
10.
11. marshal — Internal Python object serialization
This module is mostly used by Python itself to support read/write
operations on compiled versions of Python modules (.pyc files).
Dumps()
Loads()
Dump()
Load()
Note:The data format used by the marshal module is not compatible
across Python versions
The marshal module is thus used for Python’s internal object
serialization.