import os def main(): for i in range(os.cpu_count()): print(i) if __name__ == '__main__': main()