12. A “cara” de Python def get_quote(acao): url = "http://www.bovespa.com.br/...” pagina = urllib.urlopen(url).read() inicio = pagina.find("R$")+2 final = pagina.find("</td>", inicio) cotacao = s[inicio:final].strip() try: valor = int(cotacao)/100.0 except ValueError: valor = 0 # deixe como zero return valor
48. Ensymble Usar o "ensymble" para gerar o arquivo SIS ( The Ensymble developer utilities for Symbian OS ): ensymble py2sis <source> <target> --uid=<uid> --appname= <appname> http://wiki.forum.nokia.com/index.php/How_to_make_py_to_sis_for_3rd_Editon_devices
49. Trote.py import telephone, audio, time s = audio.Sound.open(“E:TROTE.WAV”) telephone.dial(“190”) # espere atender s.record() time.sleep(10) telephone.hang_up() s.stop() # divirta-se com o resultado s.play()