import pg (postgres) in python codes, you need to install 'python3-postgresql'
or search it as follows:
$ sudo apt-cache search python3-postgresql 如果不行,試試
$ sudo apt-get install python-pygresql
import pg (postgres) in python codes, you need to install 'python3-postgresql'
or search it as follows:
$ sudo apt-cache search python3-postgresql 如果不行,試試
$ sudo apt-get install python-pygresql
1.while循環的格式 while 條件: 條件滿足時,做的事情1 條件滿足時,做的事情2 條件滿足時,做的事情3 ...(省略)... demo