Python co se času.time() vrací

Příklady kódu

11
0

N

import time

start = time.time()
print("hello")
end = time.time()
print(end - start)
1
0

N

import time
thistime = time.time()
# Here's an idea!
def CountTime():
  while(True):
    time.sleep(1)
    print(thistime)
CountTime()
1
0

N

from time import time

# 1 January 1970 is the standard date that all computers measure time against 
# Prints the number of seconds that have passed since 1 January 1970
print(time())

V jiných jazycích

Tato stránka je v jiných jazycích

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................