我用python2.7.2运行Ubuntu。在
脚本
python \
/home/blainer/Desktop/convert/converter.py \
/home/blainer/Desktop/convert/urban.shp \
/home/blainer/Desktop/convert/result.js \
--width 900 \
--country_name_index 4 \
--where "ISO = 'USA'" \
--codes_file /home/blainer/Desktop/convert/codes-en.tsv \
--insets '[{"codes": ["US-AK"], "width": 200, "left": 10, "top": 370}, {"codes": ["US-HI"], "width": 100, "left": 220, "top": 400}]' \
--minimal_area 4000000 \
--buffer_distance -3000 \
--simplify_tolerance 1000 \
--longtitude0 10w \
--name us
错误
^{pr2}$
这不是Python脚本,而是运行Python的shell脚本。在
script.sh
,而不是.py
。在#!/bin/bash
chmod +x ./script.sh
blainer@ubuntu:~/Desktop/convert$ ./script.sh
相关问题 更多 >
编程相关推荐