SHARE
TWEET

Tentativa da 2q da revisão

DomMisterSoja Sep 12th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. arquivo=open('vitor.pgm','r')
  2. geral=[]
  3. geral1=[]
  4. j=0
  5. for i in arquivo:
  6.     info=i.split(' ')
  7.     geral1.append(info)
  8.     x=[]
  9.     if(j<=2):
  10.         x.append(info)
  11.     geral.append(x)
  12.  
  13.     else:
  14.         c=0
  15.         for i in info:
  16.             if c<=98:
  17.                 x.append(i)
  18.                 c+=1
  19.         geral.append(x[::-1])
  20. j+=1
  21. for i in range(128):
  22.     print(geral1[i])
  23.  
  24.  
  25. arquivo.close()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top