[英]Add to Python Script from PowerShell Terminal?
I'm learning Python from "Learn Python the Hard Way" by Zed A. Shaw, and can't figure out: 我正在从Zed A. Shaw的“学习Python的艰难方法”中学习Python,但无法弄清楚:
Add-Content ex1.py "print "Hello""
and other variations, but I get the message: Add-Content ex1.py "print "Hello""
和其他变体,但是得到消息:
Add-Content : A positional parameter cannot be found that accepts argument 'Hello'.
Add-Content:找不到接受参数“ Hello”的位置参数。
Add-Content ex1.py 'print "Hello"'
Add-Content ex1.py 'print "Hello"'
python.exe -c "<cmd>"
to execute a single python command. python.exe -c "<cmd>"
执行单个python命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.