【发布时间】:2015-02-06 01:43:51
【问题描述】:
您好,我正在尝试使用 power shell 将来自数据文件的输入作为命令行输入进行管道传输。
我正在使用命令cat D:\Python\test-inputs.txt| python a3p1.py
输出应该与文件中的进程无关。我正在阅读我的标准输入输入
while True:
line = sys.stdin.readline()
if not line:
break
words = line.split()
for word in words:
breakdown(database, word)
谁能帮帮我
【问题讨论】:
-
enter link description here Python 的标准输入可能是正确的方法
标签: python powershell pipeline