Technical Trivia
Tuesday, October 9, 2018
Taking screenshot on Moto G5 Plus
To take a screenshot on the Moto G5 Plus phone, press the Volume-Down button and the Power button together. To see the screen shot, go to Photos --> Albums --> Screenshots.
Wednesday, October 3, 2018
Timing code in Python
To time a particular code block in Python, do this:
import time
t = time.time()
#<code_block>
print(f'code-block-name:{time.time()-t})
[Courtesy:
this
]
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)