아직 내 질문과 같이 겉으로보기에는 단순한 것들을 테스트하고 프로파일 링하기위한 도구를 가지고 있거나 개발하거나 사용하는 방법을 알고있는 수준이 아닙니다.루핑 된 루프 가져 오기 기능에서 모듈 가져 오기가 실행됩니까?
나는 조건을 검사하고 그 조건에 따라 (다른 모듈과) 함께 작동하는 최상의 수학 도구를 선택하지만이 함수는 배열의 창에 적용되므로 반복됩니다. 창마다 다른 수입이 발생할 수 있습니다. 그러나 이것은 수입이 실제로 반복되고 있는지, 그리고 이것이 성능상의 문제인지 궁금합니다. 여기
는하기 matplotlib 소스 루프 대체 개폐 도면 I마다 다른 반복을 가져올 경우 시간def pause(interval):
"""
Pause for *interval* seconds.
If there is an active figure it will be updated and displayed,
and the GUI event loop will run during the pause.
If there is no active figure, or if a non-interactive backend
is in use, this executes time.sleep(interval).
This can be used for crude animation. For more complex
animation, see :mod:`matplotlib.animation`.
This function is experimental; its behavior may be changed
or extended in a future release.
"""
backend = rcParams['backend']
if backend in _interactive_bk:
figManager = _pylab_helpers.Gcf.get_active()
if figManager is not None:
canvas = figManager.canvas
canvas.draw()
show(block=False)
canvas.start_event_loop(interval)
return
# No on-screen figure is active, so sleep() is all we need.
import time
time.sleep(interval)
의 일례이다? 또는 가져 오기를 처음 호출 할 때 가져온 것이고 이후 가져 오기가 무시됩니까?
감사 import
후
이것은 바보 같은 질문 일 것임에 틀림 없다. 나는 captcha가 두 번 상영되었고, 틀린 것을 처음으로 입력했다. T_T – arynaq