当前位置:网站首页>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
边栏推荐
- Brief description of inux camera (Mipi interface)
- 剑指 Offer 56 数组中数字出现的次数(异或)
- [untitled]
- When jupyter notebook is encountered, erroe appears in the name and is not output after running, but an empty line of code is added downward, and [] is empty
- 氫氧化鈉是什麼?
- 公安基础知识--fb
- CADD课程学习(5)-- 构建靶点已知的化合结构(ChemDraw)
- Basic series of SHEL script (III) for while loop
- Idea common settings
- arcpy. SpatialJoin_ Analysis spatial connection analysis
猜你喜欢
Don't confuse the use difference between series / and / *
How to deal with excessive memory occupation of idea and Google browser
Target detection series - detailed explanation of the principle of fast r-cnn
大学生活的自我总结-大一
Machine learning Seaborn visualization
Negative number storage and type conversion in programs
M2dgr slam data set of multi-source and multi scene ground robot
2022 PMP project management examination agile knowledge points (7)
SOC_ SD_ DATA_ FSM
And let's play dynamic proxy (extreme depth version)
随机推荐
Batch convert txt to excel format
[vscode] search using regular expressions
arcgis_ spatialjoin
arcpy. SpatialJoin_ Analysis spatial connection analysis
Unforgettable summary of 2021
QT small case "addition calculator"
Idea common settings
Simple operation of nixie tube (keil5)
Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)
Simple operation of running water lamp (keil5)
ModuleNotFoundError: No module named ‘picamera‘
Basic series of SHEL script (I) variables
[OBS] x264 Code: "buffer_size“
[software testing] 02 -- software defect management
Rough notes of C language (2) -- constants
Simple operation with independent keys (hey, a little fancy) (keil5)
[untitled]
NPM and package common commands
Database SQL practice 4. Find the last of employees in all assigned departments_ Name and first_ name
行测--资料分析--fb--高照老师