通过pycharm通过console运行代码

2024-04-20 08:19:12 发布

您现在位置:Python中文网/ 问答频道 /正文

嗨,我是新的编程和pycharm。我想通过python控制台运行下面的代码。我需要输入3个值来运行它。我试过python p13.py一二三,但没有成功。你知道吗

from sys import argv

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

你能帮我在pycharm中输入python命令来运行这个吗。你知道吗


Tags: 代码pyyouris编程scriptvariablepycharm