python - 艰难学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
解决方案
推荐阅读
- reactjs - 为什么我的 React 应用程序没有部署在 GitHub 上
- sql - 在 SQLite 中查询多个表时如何累积匹配?
- html - 图片VUE中“src”的动态变化
- php - 文件/媒体无法通过 Codeignitator 中的 URL 公开访问
- php - 为什么 authorize() 不能像在开发环境中那样在生产环境中工作?
- numpy - 如何用 numpy 制作一个简单的 Vandermonde 矩阵?
- c - 问题:奖学金捐赠基金第 2 部分 (fund2.c)
- javascript - 如何保存和加载没有画布元素的艺术作品?
- go - 如何使用 go.mod 强制指定特定的包版本?
- ruby - 大小读写文件和条件语句