This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
PASSOS P/ RODAR ESTE CODIGO: | |
1. Abra o link: https://www.w3schools.com/js/tryit.asp?filename=tryjs_while | |
2. Copie e cole este codigo na pagina que vc abriu | |
3. Clique no botao "RUN" (cor verde) | |
4. Ajuste o tamanho da janela para melhor visualizacao do display |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tested on python 3.6 | |
from typing import NamedTuple | |
class T(NamedTuple): | |
a: int | |
b: str | |
if __name__=='__main__': | |
# define a named tuple object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import glob | |
import serial | |
def serial_ports(): | |
""" Lists serial port names | |
:raises EnvironmentError: | |
On unsupported or unknown platforms |
NewerOlder