1
我想在python 3.5中遵循一些代碼,並且我仍然是超級newb級別。在Python中導入是什麼。意思?
我有以下進口,但我不確定與'。'開頭的差異是什麼?
import os
import time
import random
import numpy as np
from tqdm import tqdm
import tensorflow as tf
from .base import BaseModel
from .history import History
from .replay_memory import ReplayMemory
from .ops import linear, conv2d, clipped_error
from utils import get_time, save_pkl, load_pkl
例如.base .history中.replay_memory .ops
它是在哪裏得到那些模塊?他們是否將它們作爲早期模塊的一個子集?
https://docs.python.org/2.5/whatsnew/pep-328.html – BallpointBen
的http:// stackoverflow.com/questions/7279810/what-does-a-in-an-import-statement-in-python-mean – plasmon360