fork download
  1.  
  2.  
  3. def inicializacion():
  4. toret = {}
  5. toret["puerto"] = '/dev/ttyACM0'
  6. toret["baudRate"] = 115200
  7. toret["buffer"] = ''
  8.  
  9. return toret
  10.  
  11.  
  12. def main():
  13. datos = inicializacion()
  14. datos["buffer"] = "hola"
  15. print(datos["buffer"])
  16. print(datos)
  17.  
  18. main()
Success #stdin #stdout 0.03s 44632KB
stdin
Standard input is empty
stdout
hola
{'puerto': '/dev/ttyACM0', 'baudRate': 115200, 'buffer': 'hola'}