-2
我想給列表作爲python中的命令行參數。當我tried`列表作爲python中的命令行參數
osize = sys.argv[1]
o_hres = osize[0]
o_vres = osize[1]
print osize
print o_vres
print o_hres`
輸出
python temp.py 23,44
23,44
3
2
預期的位置是
python temp.py 23,44
23,44
44
23
請解決這個問題
請修復您的問題的格式。 – MostafaR 2013-03-26 06:57:53