所以问题是当我打开'Ubuntu‘和'Windows Linux子系统’时,会出现错误:'Ubuntu‘
WslRegisterDistribution failed with error: 0x8000000d
Error: 0x8000000d An illegal state change was requested.
Press any key to continue...
'Windows Subsystem for Linux'
Windows Subsystem for Linux has no installed distributi
我知道您可以通过Python脚本使用子进程运行Linux终端命令
subprocess.call(['ls', '-l']) # for linux
但是我找不到在windows上做同样事情的方法
subprocess.call(['dir']) # for windows
有没有可能在不做大量修改的情况下使用Python?
我应该坚持使用好的老式批处理文件吗?