而在windows下要做到同樣auto-refreash pdf,目前我是用pdf x-change reader可做到相同功能,在cmd環境下,輸入c:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe" /A "nolock=yes=OpenParameters" ,pdf。
即可在每次latex編譯,自動更新pdf內容。
a=[1,2,3]
b=[1,2,3]
a == b # True
a is b # False
a=func(...) # a is False
if a is False:
# do something
在 a is False這一行竟然結果為False而非True,必須將判斷式改為a==False才會為True。
cimport numpy as cnp
ctypedef cnp.float64_t FLOAT_t
@cython.wraparound(False)
@cython.boundscheck(False)
def myfunc(cnp.ndarray[FLOAT_t, ndim=2] f):
pass
c = Client()
dview = c[:]
asyncs = [dview.map_async(f, [arg]) for arg in args]
while asyncs:
for async in asyncs[:]:
if async.ready():
asyncs.remove(async)
print async.result[0]