当前位置:网站首页>What is the use of the subprocess module
What is the use of the subprocess module
2022-06-25 05:41:00 【JackLi2021】
It's like python Open one inside cmd window , And do what you're doing cmd It does the same thing inside
Like watching a movie ip Well ,cmd Namely ipconfig , It should be known

And then in python Just do it like this in the

This is the simplest one , But if you want to do some fancy work , For example, you are in cmd,ping When a website is accessed, it will be displayed line by line in real time . So you want to python Let him come out in real time , The first method is definitely not feasible . So it can be like this .

So he can update it in real time . Just stop the program when you want to close it .. But where it is marked in red, I should have typed utf-8 Of But there was an error . Later it was replaced by gbk Just fine . Maybe everyone is different , You can try whichever line you use
This is a link to help me solve the problem , Thanks to this friend
边栏推荐
- Excel splits a worksheet into multiple worksheets according to conditions, and how to split multiple worksheets into independent tables
- Bind simulation, key points of interpreting bind handwritten code [details]
- cuda编译报错
- Go deep into the working principle of browser and JS engine (V8 engine as an example)
- Edge loss 解读
- Voxel based and second network learning
- Guava new collection type
- hr竟主动给这位测试小姐姐涨工资,她是怎么做到的?
- 电子协会 C语言 1级 28 、字符菱形
- I got to know data types and function variables for the first time. I learned data types and function variables together today and yesterday, so I saved them in the first issue to record.
猜你喜欢

DOM document object model (I)

hr竟主动给这位测试小姐姐涨工资,她是怎么做到的?

"APEC industry +" biov Tech talks about the cross-border of Chinese biotechnology enterprises and "Pratt & Whitney Kangyu" | apec-hub public welfare

Personalized Federated Learning with Moreau Envelopes

Baidu ueeditor set toolbar initial value

Array introduction plus example 01

Classic usage of the sumproduct function

Semantic segmentation cvpr2019-advance: advantageous enterprise minimization for domain adaptation in semantic segmentation

SSRF-lab

Go implements LRU cache
随机推荐
[QT] for multithreaded programs, do not use the printf() function to print out
SSRF-lab
Essais de pénétration - sujets d'autorisation
Transformations of pytorch torch torch vision
Everything is an object
Use js to simply implement the apply, call and bind methods
Dynamic programming example 1 leetcode 322 coin change
Guava new collection type
Monkey test of APP automation
Guava-IO
Use of pytorch tensorboard
On Transform
Stack and Queue
[day40 literature extensive reading] space and time in the child's mind: metallic or atomic
Basic bit operation symbols of C language
Pointer array function combination in C language
Edge loss 解读
Detailed summary of position positioning
Excel splits a worksheet into multiple worksheets according to conditions, and how to split multiple worksheets into independent tables
Handwritten promise all