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
x2=3
y2=6
number=24
a=np.identity(number)
for u in range(len(x)):
x1=x[u]
y1=y[u]
h=0
if x1>x2-1:
h=h+1
if x1<x2+number:
h=h+1
if y1>y2-1:
h=h+1
if y1<y2+number:
h=h+1
if h==4:
a[y1-y2][x1-x2]=v[u]
ys=np.zeros(number)
for u in range(len(x)):
x1=x[u]
y1=y[u]
h=0
if x1>x2-1:
h=h+1
if x1<x2+number:
h=h+1
if y1==36:
h=h+1
if h==3:
ys[x1-x2]=v[u]
print(ys)
最終更新:2018年01月25日 16:00