当前位置:网站首页>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
边栏推荐
- Docker installs MySQL and uses Navicat to connect
- Play with grpc - go deep into concepts and principles
- Binary search (half search)
- NPM and package common commands
- Database SQL practice 3. Find the current salary details of the current leaders of each department and their corresponding department number Dept_ no
- Cookie operation
- SOC_ SD_ DATA_ FSM
- Word import literature -mendeley
- 2022年PMP项目管理考试敏捷知识点(7)
- [software testing] 04 -- software testing and software development
猜你喜欢

Basic series of SHEL script (III) for while loop

And play the little chestnut of dynamic agent

HDU1232 畅通工程(并查集)

Hdu1232 unimpeded project (and collection)

借助 Navicat for MySQL 软件 把 不同或者相同数据库链接中的某数据库表数据 复制到 另一个数据库表中

目标检测系列——Faster R-CNN原理详解

What if the DataGrid cannot see the table after connecting to the database

Machine learning Seaborn visualization

CADD课程学习(5)-- 构建靶点已知的化合结构(ChemDraw)

How to delete the virus of inserting USB flash disk copy of shortcut to
随机推荐
Anaconda navigator click open no response, can not start error prompt attributeerror: 'STR' object has no attribute 'get‘
CADD course learning (5) -- Construction of chemosynthesis structure with known target (ChemDraw)
[node] differences among NPM, yarn and pnpm
[vscode] prohibit the pylance plug-in from automatically adding import
The mutual realization of C L stack and queue in I
Use of Pai platform
ORACLE CREATE SEQUENCE,ALTER SEQUENCE,DROP SEQUENCE
Line test -- data analysis -- FB -- teacher Gao Zhao
CADD course learning (6) -- obtain the existing virtual compound library (drugbank, zinc)
Don't confuse the use difference between series / and / *
PostMessage communication
Docker installs MySQL and uses Navicat to connect
I 用c l 栈与队列的相互实现
list. files: List the Files in a Directory/Folder
ModuleNotFoundError: No module named ‘picamera‘
Idea to view the source code of jar package and some shortcut keys (necessary for reading the source code)
I can't stand the common annotations of idea anymore
公安基础知识--fb
What if the DataGrid cannot see the table after connecting to the database
Application of MATLAB in Linear Algebra (4): similar matrix and quadratic form