首页 > 解决方案 > 艰难学Python练习13(导入)powershell无响应

问题描述

我是初学者,通过《Learn Python the hard way》这本书学习python,练习13是关于导入的。这是我打算通过 powershell 运行的代码。

from sys import argv
# read the WYSS section for how to run this
script, first, second, third = argv

print("The script is called:", script)
print("Your first variable is:", first)
print("Your second variable is:", second)
print("Your third variable is:", third)

在 windows powershell 中,我正在输入:

python ex13.py first 2nd 3rd

我没有收到任何错误,什么都没有。

我正在用 Notepad++ 编写代码,文件名是ex13.py

标签: pythonpowershell

解决方案


推荐阅读