当前位置:网站首页>Deepin, help ('command ') output saved to file
Deepin, help ('command ') output saved to file
2022-07-05 07:28:00 【work-harder】
background :deepin, python3.7, help(' command ') Save output to text file .txt
Method :
1/ command Line interface , Input python -c 'import pygame; help(pygame.draw.arc)' > pygame_draw_arc.txt
remarks :
1/ use The following script failed : file pygame_draw_arc.txt Can produce , But nothing .help(' command ') Still output to the screen , I haven't found out yet .
import pygame
import sys
out_org = sys.stdout
sys.stdout = open('pygame_draw_arc.txt', 'w')
help(pygame.draw.arc)
sys.stdout.close()
sys.stdout = out_org
边栏推荐
- What is soda?
- Rough notes of C language (2) -- constants
- The problem of configuring opencv in qt5.13.2 is solved in detail
- Eclipse project recompile, clear cache
- Import CV2, prompt importerror: libcblas so. 3: cannot open shared object file: No such file or directory
- How to modify the file path of Jupiter notebook under miniconda
- Rough notes of C language (1)
- Database SQL practice 4. Find the last of employees in all assigned departments_ Name and first_ name
- [software testing] 02 -- software defect management
- [software testing] 03 -- overview of software testing
猜你喜欢
Ugnx12.0 initialization crash, initialization error (-15)
玩转gRPC—深入概念与原理
Miracast技术详解(一):Wi-Fi Display
借助 Navicat for MySQL 软件 把 不同或者相同数据库链接中的某数据库表数据 复制到 另一个数据库表中
SD_ CMD_ SEND_ SHIFT_ REGISTER
HDU1232 畅通工程(并查集)
IPage can display data normally, but total is always equal to 0
Today, share the wonderful and beautiful theme of idea + website address
[untitled]
Hdu1232 unimpeded project (and collection)
随机推荐
IPage can display data normally, but total is always equal to 0
[solved] there is something wrong with the image
Netease to B, soft outside, hard in
QT small case "addition calculator"
C learning notes
Use of Pai platform
纯碱是做什么的?
Efficiency difference: the add method used by the set directly and the add method used by the set after judgment
Intelligent target detection 59 -- detailed explanation of pytoch focal loss and its implementation in yolov4
[software testing] 05 -- principles of software testing
【Node】npm、yarn、pnpm 区别
GPIO port bit based on Cortex-M3 and M4 with operation macro definition (can be used for bus input and output, STM32, aducm4050, etc.)
SOC_ SD_ CMD_ FSM
Idea common settings
And let's play dynamic proxy (extreme depth version)
[software testing] 03 -- overview of software testing
Miracast技术详解(一):Wi-Fi Display
M2DGR 多源多场景 地面机器人SLAM数据集
R language learning notes 1
Chapter 2: try to implement a simple bean container