Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python -c

$ python -c "print('This is run in shell and printed in Python')"
This is run in shell and printed in Python

$ python -c "print('This is a dir of globals'),print(dir(globals()))"
This is a dir of globals
['__class__', '__contains__', '__delattr__', '__delitem__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__setattr__', '__setitem__', '__sizeof__', '__str__', '__subclasshook__', 'clear', 'copy', 'fromkeys', 'get', 'items', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values']
Comment

PREVIOUS NEXT
Code Example
Python :: arrays python 
Python :: python max 
Python :: keyboard python 
Python :: numpy reshape (n ) to (n 1) 
Python :: poerty python macos 
Python :: how to add a column with more rows to a dataframe 
Python :: convert dictionary keys to list python 
Python :: python os.path.join 
Python :: add timestamp csv python 
Python :: Adding new column to existing DataFrame in Pandas using concat method 
Python :: python extract all characters from string before a character 
Python :: Kivy Python ListView Scrollview with Toggle on off 
Python :: what is the difference between accuracy and loss 
Python :: why are my static files not loading in django 
Python :: inpuit inf terfminal ppython 
Python :: how to use coordinates in python 
Python :: convert sentence to words python 
Python :: downgrade python version windows 
Python :: len of iterator python 
Python :: tuple count in python 
Python :: numpy arange float step 
Python :: python glob.glob recursive 
Python :: python get type of variable 
Python :: count element in set python 
Python :: k fold cross validation from scratch python 
Python :: How do I plot a csv file in Jupyter notebook? 
Python :: django loginview 
Python :: python3 format leading 0 
Python :: coinflip 
Python :: pandas fillna 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =