当前位置:网站首页>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
边栏推荐
- Eclipse project recompile, clear cache
- HDU1232 畅通工程(并查集)
- Import CV2 prompt importerror: libgl so. 1: Cannot open shared object file: no such file or directory
- HDU1231 最大连续子序列(分治or动规or双指针)
- list. files: List the Files in a Directory/Folder
- U-boot initialization and workflow analysis
- Pytorch has been installed in anaconda, and pycharm normally runs code, but vs code displays no module named 'torch‘
- [idea] efficient plug-in save actions to improve your work efficiency
- Machine learning Seaborn visualization
- [solved] there is something wrong with the image
猜你喜欢
[software testing] 03 -- overview of software testing
Chapter 2: try to implement a simple bean container
[idea] efficient plug-in save actions to improve your work efficiency
What if the DataGrid cannot see the table after connecting to the database
Graduation thesis project local deployment practice
C#学习笔记
Concurrent programming - how to interrupt / stop a running thread?
Using GEE plug-in in QGIS
SOC_ SD_ DATA_ FSM
Netease to B, soft outside, hard in
随机推荐
Chapter 2: try to implement a simple bean container
(top) pretty girl binary color code portal
NPM and package common commands
Shadowless cloud desktop - online computer
Ethtool principle introduction and troubleshooting ideas for network card packet loss (with ethtool source code download)
苏打粉是什么?
arcgis_ spatialjoin
Daily Practice:Codeforces Round #794 (Div. 2)(A~D)
ORACLE CREATE SEQUENCE,ALTER SEQUENCE,DROP SEQUENCE
SOC_ SD_ DATA_ FSM
The SQL implementation has multiple records with the same ID, and the latest one is taken
纯碱是做什么的?
CADD课程学习(5)-- 构建靶点已知的化合结构(ChemDraw)
Simple use of timeunit
Rough notes of C language (2) -- constants
行测--资料分析--fb--高照老师
氫氧化鈉是什麼?
[OBS] x264 Code: "buffer_size“
Netease to B, soft outside, hard in
The mutual realization of C L stack and queue in I