一、脚本文件(test.py)
# -*- coding: UTF-8 -*-
import time
print("hello"," python")
os.getcwd() # 获得当前工作目录
os.chdir(path) # 改变当前工作路径
while True:
print("start to print %s" % "python")
time.sleep(2)
# -*- coding: UTF-8 -*-
import time
print("hello"," python")
os.getcwd() # 获得当前工作目录
os.chdir(path) # 改变当前工作路径
while True:
print("start to print %s" % "python")
time.sleep(2)