需要哪些主件呢,我安装的python 2.7.9
root@OpenWrt:/# python
Python 2.7.9 (default, Dec 27 2015, 22:44:50)
[GCC 4.8.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
运行是没有错误的
root@OpenWrt:/# ping
www.baidu.com
PING
www.baidu.com(119.75.218.70): 56 data bytes
64 bytes from 119.75.218.70: seq=0 ttl=52 time=42.081 ms
64 bytes from 119.75.218.70: seq=1 ttl=52 time=44.773 ms
64 bytes from 119.75.218.70: seq=2 ttl=52 time=42.449 ms
64 bytes from 119.75.218.70: seq=3 ttl=52 time=42.121 ms
64 bytes from 119.75.218.70: seq=4 ttl=52 time=42.211 ms
64 bytes from 119.75.218.70: seq=5 ttl=52 time=41.703 ms
额,刚才又试了下,可以了,谢谢大兄弟的解答
root@OpenWrt:/MyPython# python weather.py
city:mian_yang
101270401
10:25
temperature:
17