Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python repr vs str

import datetime
now = datetime.datetime.now()
now.__str__()
#>>> '2020-12-27 22:28:00.324317'
now.__repr__()
#>>> 'datetime.datetime(2020, 12, 27, 22, 28, 0, 324317)'
Comment

PREVIOUS NEXT
Code Example
Python :: application automation python library 
Python :: boto3 rename file s3 
Python :: how to make every item compare the rest items of list in python 
Python :: hash function in python 
Python :: pandas filter by dictionary 
Python :: phython to c converter 
Python :: How to Get the length of all items in a list of lists in Python 
Python :: create array with shape 0,2 
Python :: pyqt click through window 
Python :: python booleans 
Python :: add a constant to a list python 
Python :: pandas order dataframe by column of other dataframe 
Python :: python first 
Python :: python int in list 
Python :: variable globale python 
Python :: python raise filenotfounderror 
Python :: while loop with if else 
Python :: dictionary.com 
Python :: expand pandas dataframe into separate rows 
Python :: python sort a list using defined order 
Python :: qr scanner 
Python :: linux python 
Python :: python sleep command 
Python :: python empty list 
Python :: how to perform in_order traversal of a binary tree 
Python :: flask flash The browser (or proxy) sent a request that this server could not understand. 
Python :: sample hyperparameter tuning with grid search cv 
Python :: python split() source code 
Python :: upgrade python version windows 
Python :: how to store the variable in dictionary 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =