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@raspberr