This file contains hidden or 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
| # Script que recebe um arquivo com números separados por espaços | |
| # O script soma os números e cria um arquivo de saída com os resultados | |
| saida =[] | |
| with open('entrada.txt','r') as arquivoEntrada, open('saida.txt','w') as arquivoSaida: | |
| for linha in arquivoEntrada: | |
| numeros = str(linha).split(' ') | |
| resultado = int(numeros[0])+int(numeros[1]) | |
| saida.append(resultado) | |
| arquivoSaida.write(f'{str(resultado)}\n') |
This file contains hidden or 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
| string1 = input("Digite uma letra: ") | |
| string2 = input("Digite uma palavra: ") | |
| contagem = 0 | |
| for letra in string2: | |
| if letra == string1: | |
| contagem +=1 | |
| print(string1,string2,contagem) |
This file contains hidden or 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
| <html> | |
| <body> | |
| <h3>Type a word or series of words to see them hyphenated separately:</h3> | |
| <p>(press ENTER to see the result)</p> | |
| <input type="text" id="words" name="words"> | |
| <p class="teste"></p> | |
| <script src="index.js"></script> | |
| </body> | |
| </html> |
This file contains hidden or 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
| ''' | |
| Created on Dec 19, 2013 | |
| A script to convert TMXs into parallel corpuses for machine | |
| translation (e.g. Moses: http://www.statmt.org/moses/) training. | |
| Pass in either paths to TMX files, or directories containing TMX files. | |
| The script will recursively traverse directories and process all TMXs. | |
| To perform tokenization or to filter the output, use the convert() method |
This file contains hidden or 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
| #A ideia inicial partiu deste código https://gist.github.com/duarteguilherme/25a80afd502035c55b45ed85dc8977e0 | |
| import requests | |
| import json | |
| import csv | |
| headers = { | |
| 'Host': 'www.cnj.jus.br', | |
| 'Connection': 'keep-alive', | |
| 'Content-Length': '213', | |
| 'Accept': 'application/json, text/plain, */*', | |
| 'Origin': 'http://www.cnj.jus.br', |