0

如何在此代码中添加“int”,以使三个中的至少一个必须是整数?

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
4

1 回答 1

1

你没有。你分开做。

second = int(second)
于 2013-09-11T01:15:30.747 回答