Latest web development tutorials

Python inclui exercícios 91

Python 100 Li Python 100 Li

Título: funções de tempo Exemplo 1.

Análise do Programa: Nenhum.

Source Code:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

if __name__ == '__main__':
    import time
    print time.ctime(time.time())
    print time.asctime(time.localtime(time.time()))
    print time.asctime(time.gmtime(time.time()))

O exemplo acima saída é:

Wed Oct 21 17:08:51 2015
Wed Oct 21 17:08:51 2015
Wed Oct 21 09:08:51 2015

Python 100 Li Python 100 Li