#coding=utf-8 from sys import argv script,first,second,third = argv print "the script is=",script print "the first is=",first print "the second is=",second print "the third is=",third """ 执行方法 D:\>
1 ---python从键盘获取输入有两种方法: 2 3 4 input与raw_input比较: 5 6 #1.input函数:需要以合法的python表达式形式输入 7 8 例1: 9 >>> name = input ("what is your name ?") 10 what is your name ? 11 12 当输入为数值型:3时,通过:当输入为字符型:lucy时,抱错: 13 14 例2: 15 str = input("Enter yo