#Descrição do RPG estrutura
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
#!/usr/bin/env python | |
# Python 2 | |
image = lambda m,n: map(lambda k: | |
map(lambda i: {'r':0,'g':0,'b':0}, range(n)), | |
range(m)) |
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
/* | |
* Author: Wandeson Ricardo | |
* Blog: wanartsci.blogspot.com | |
* gaenos.wordpress.com | |
* Correções feitas no código de acordo com comentários e linhas de comando comentadas | |
* Links (fonte para correções): | |
* https://www.ime.usp.br/~pf/algoritmos/aulas/io.html | |
* https://programacaodescomplicada.wordpress.com/2013/01/08/aula-81-limpar-o-buffer/ | |
* http://www.cprogressivo.net/2012/12/Buffer--o-que-e-como-limpar-e-as-funcoes-fflush-e-fpurge.html | |
* |
EXAMPLES C
Pointers, structs, typedef and memory allocations.
PyCodes
Snnipets of python codes.
Pequenos códigos python.
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
(lambda chave: [dict(key='Conhecimento', value=chave), [i for i in 'Conhecimento Além Da Janela'] ])('progresson humano') |
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
#!/usr/bin/python3 -tt | |
#-*- coding: utf-8 -*- | |
# Author: Wandeson Ricardo | |
# Page: wsricardo.github.io | |
# Blog: wanartsci.blogspot.com | |
import re | |
import pprint | |
from pprint import * |
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
m, n = 3 , 3 | |
# Create matrix | |
# B = [ [ 0 for i in range(m)] for j in range(n) ] | |
A = [ [ 1 if i==j else 0 for i in range(m)] for j in range(n)] | |
# Output: >>> [[1, 0, 0], [0, 1, 0], [0, 0, 1]] | |
print('\n',A[0],'\n',A[1],'\n',A[2],'\n') |
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
#!/usr/bin/python3 | |
import sys | |
import time | |
import pprint | |
import requests | |
# Tutotrial biblioteca 'requests' do Python | |
# http://docs.python-requests.org/en/master/user/quickstart/ | |
# Video tutoriais https://www.youtube.com/watch?v=2Co4cjPMTnk&index=12&list=PLp95aw034Wn_WtEmlepaDrw8FU8R5azcm | |
# Tutorial (inglês) http://zetcode.com/web/pythonrequests/ |
OlderNewer