pi@raspberrypi:~ $ python3
Python 3.6.4 (default, Apr 8 2018, 18:42:32)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import GPIO
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'GPIO'
显示python3里面没有RPi.GPIO,但是python2.7里面有
pi@raspberrypi:~/GPIOtest $ python
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3