def main():
print(os.nice(0)) # get relative process priority
print(os.nice(1)) # change relative priority
print(os.times()) # process times: system, user etc...
print(os.isatty(0)) # is the file descriptor arg a tty?(0 = stdin)
print(os.isatty(4)) # 4 is just an arbitrary test value
print(os.getloadavg()) # UNIX only - number of processes in queue
print(os.cpu_count()) # New in Python 3.4
评论列表
文章目录