当前位置:网站首页>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
边栏推荐
- Basic knowledge of public security -- FB
- What is soda?
- Light up the running light, rough notes for beginners (1)
- 苏打粉是什么?
- [idea] efficient plug-in save actions to improve your work efficiency
- I can't stand the common annotations of idea anymore
- 2022.06.27_ One question per day
- 公安基础知识--fb
- Miracast技术详解(一):Wi-Fi Display
- Idea common settings
猜你喜欢

Ugnx12.0 initialization crash, initialization error (-15)

arcgis_ spatialjoin

C#学习笔记

SOC_ SD_ DATA_ FSM

Brief description of inux camera (Mipi interface)

The problem of configuring opencv in qt5.13.2 is solved in detail

CADD course learning (5) -- Construction of chemosynthesis structure with known target (ChemDraw)

CADD课程学习(6)-- 获得已有的虚拟化合物库(Drugbank、ZINC)

Pytorch has been installed in anaconda, and pycharm normally runs code, but vs code displays no module named 'torch‘
![[software testing] 02 -- software defect management](/img/2f/9987e10e9d4ec7509fa6d4ba14e84c.jpg)
[software testing] 02 -- software defect management
随机推荐
(tool use) how to make the system automatically match and associate to database fields by importing MySQL from idea and writing SQL statements
How to modify the file path of Jupiter notebook under miniconda
UNIX commands often used in work
And let's play dynamic proxy (extreme depth version)
Negative number storage and type conversion in programs
Reading literature sorting 20220104
Target detection series - detailed explanation of the principle of fast r-cnn
I can't stand the common annotations of idea anymore
Using GEE plug-in in QGIS
SD_ CMD_ RECEIVE_ SHIFT_ REGISTER
2022.06.27_每日一题
And play the little chestnut of dynamic agent
Ggplot2 drawing learning notes in R
【idea】Could not autowire. No beans of xxx type found
golang定时器使用踩的坑:定时器每天执行一次
What is soda?
Set theory of Discrete Mathematics (I)
Hdu1232 unimpeded project (and collection)
行测--资料分析--fb--高照老师
Energy conservation and creating energy gap