变量currentuser
中的空行。我在头骨后面得到一个空行,变量不等于skull
,循环继续。你知道吗
currentuser = subprocess.check_output('stat -f%Su /dev/console 2>&1', shell=True)
print currentuser
while not currentuser == "skull":
time.sleep(1)
print"waiting for user to login"
print"Script Continue"
头骨后空行
Python/登录日期你知道吗
skull
waiting for user to login
waiting for user to login
目前没有回答
相关问题 更多 >
编程相关推荐