我如何开始与相关的文件非默认像"编辑","打印"命令(壳动词),......通过命令行或从.bat脚本,通过使用标准的Windows手段.
(在Windows资源管理器中右键单击文件时,您将获得的额外操作.)
从而获得了效果
python -c "import os;os.startfile('somepic.png', 'edit')"
Run Code Online (Sandbox Code Playgroud)
(ShellExecuteEx),但不使用python,powershell等额外工具.START命令似乎没有提供.
我正在使用 Google 风格的 python 文档字符串格式。有一个函数,输入参数可以是字典、列表或字符串。docstring中多种数据类型的格式是什么?
喜欢
Args:
input (str, list, dict): input of this function
Run Code Online (Sandbox Code Playgroud)