打印结果如下:
#encoding=utf-8
print '中国'
#重复执行任务
import time, os, sys
def CirculeGo(cmd, inc=60):
while True:
os.system(cmd)
time.sleep(inc)
obj = CirculeGo('dir')
打印结果如下:
中国
���� F �еľ��� ѧϰ
�������� 2855-A8C9
F:\workspace\StudyPy\src\basic ��Ŀ¼
2014/03/25 19:43 <DIR> .
2014/03/25 19:43 <DIR> ..
2014/03/13 21:11 12 123.txt
2014/03/20 20:11 35 GenerateBadCode.py
2014/03/08 21:52 349 stduy001_004.py
2014/03/08 19:18 373 study001_002.py
2014/03/08 19:46 1,152 study001_003.py
2014/03/09 00:25 510 study001_005.py
2014/03/09 01:51 624 study001_006.py
2014/03/09 03:01 445 study001_007.py
2014/03/09 18:30 1,564 study001_008.py
2014/03/09 22:49 758 study001_009.py
2014/03/09 23:51 981 study001_010.py
2014/03/10 00:55 668 study001_011.py
2014/03/22 17:54 691 study001_012.py
2014/03/10 20:29 1,839 study001_013.py
2014/03/10 21:29 283 study001_014.py
2014/03/10 23:56 823 study001_015.py
2014/03/11 02:07 742 study001_016.py
2014/03/11 02:19 306 study001_017.py
2014/03/11 03:38 533 study001_018.py
2014/03/12 01:19 770 study001_019.py
2014/03/12 01:41 425 study001_020.py
2014/03/12 01:52 433 study001_021.py
2014/03/12 02:07 135 study001_022.py
2014/03/12 02:20 258 study001_023.py
2014/03/12 19:52 1,133 study001_024.py
2014/03/13 01:23 1,222 study002_001.py
2014/03/13 21:58 466 study002_002.py
2014/03/13 22:21 295 study002_003.py
2014/03/13 22:43 504 study002_004.py
2014/03/13 22:50 506 study002_005.py
2014/03/14 19:44 934 study002_006.py
2014/03/14 20:36 375 study002_007.py
2014/03/14 21:21 744 study002_008.py
2014/03/14 22:13 646 study002_009.py
2014/03/15 13:09 726 study002_010.py
2014/03/15 14:35 765 study002_011.py
2014/03/15 14:45 504 study002_012.py
2014/03/15 15:17 935 study002_013.py
2014/03/15 19:51 2,731 study002_014.py
2014/03/16 17:37 952 study002_015.py
2014/03/16 19:43 681 study002_016.py
2014/03/16 19:57 1,678 study002_017.py
2014/03/16 21:00 434 study002_018.py
2014/03/16 21:28 512 study002_019.py
2014/03/16 21:58 527 study002_020.py
2014/03/16 22:20 635 study002_021.py
2014/03/17 02:17 826 study002_022.py
2014/03/17 02:58 509 study002_023.py
2014/03/17 03:12 966 study002_024.py
2014/03/17 22:41 473 study002_025.py
2014/03/17 22:55 724 study002_026.py
2014/03/17 23:29 852 study002_027.py
2014/03/18 00:34 861 study002_028.py
2014/03/18 01:41 1,104 study002_029.py
2014/03/18 03:15 1,671 study002_030.py
2014/03/20 23:02 1,115 study003_001.py
2014/03/20 23:08 307 study003_002.py
2014/03/20 23:36 950 study003_003.py
2014/03/23 14:20 369 study003_004.py
2014/03/23 17:54 484 study003_005.py
2014/03/25 00:02 2,451 study003_006.py
2014/03/25 01:30 1,135 study003_007.py
2014/03/25 19:24 160 study003_008.py
2014/03/25 19:40 409 study003_009.py
2014/03/25 20:10 219 study003_010.py
2014/03/08 18:52 723 study01_01.py
2014/03/08 17:40 69 studyfun.py
2014/03/08 18:32 445 studyString.py
2014/03/17 22:34 0 test
2014/03/17 22:37 0 test.test
2014/03/17 22:38 0 testReadOnly.test
2014/03/05 00:21 736 __init__.py
2014/03/09 00:54 822 __init__.pyc
73 ���ļ� 50,994 �ֽ�
2 ��Ŀ¼ 89,475,809,280 �����ֽ�