__main__.py 183 B

12345678910
  1. import time
  2. def main():
  3. print('[{}] Hello world!'.format(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))))
  4. # 程序入口
  5. if __name__ == '__main__':
  6. main()