アットウィキロゴ

t666+9

import google
import numpy as np
 
code="1e9hzwMYUQse6PBTn4sCxru4mrZn6hNK1d393bFsLjy4"
 
sub=google.google() 
ws=sub.worksh(code,0)
 
sub2=google.google() 
sub2.catchdata(code,ws)
v=sub2.v
x=sub2.x
y=sub2.y
 
creditx=3
fastline=6
yline=36
number=24
a=np.identity(number)
 
for u in range(len(x)):
    x1=x[u]
    y1=y[u]
    h=0
    if x1>creditx-1:
       h=h+1
    if x1<creditx+number:    
       h=h+1
    if y1>fastline-1:
       h=h+1
    if y1<fastline+number:
       h=h+1
    if h==4:
       a[y1-fastline][x1-creditx]=v[u]
 
ys=np.zeros(number)
 
for u in range(len(x)):
    x1=x[u]
    y1=y[u]
    h=0
    if x1>creditx-1:
       h=h+1
    if x1<creditx+number:    
       h=h+1
    if y1==yline:
       h=h+1
    if h==3:
       ys[x1-creditx]=v[u]
 
print(ys)
 
最終更新:2018年01月25日 16:11