为啥总是“ 'module' object is not callable ”
#watching stock real price every minimport threading
import datetime
t=threading.Thread(target=Stock.start_run,args=())
t.start()
start_dt=datetime(datetime.datetime.today().year,datetime.datetime.today().month,
datetime.datetime.today().day,hour=9,minute=30,second=0)
stop_dt=datetime(datetime.today().year,datetime.today().month,
datetime.datetime.today().day,hour=15,minute=30,second=0)
TypeError: 'module' object is not callable datetime.datetime 要使用datetime.方法 把 Charles未晞 发表于 2019-1-26 15:04
datetime.datetime
如果去掉一个datetime,则会出现module 'datetime' has no attribute 'today' 该怎么弄呢 from datetime import datetime 塔利班 发表于 2019-1-28 09:57
from datetime import datetime
谢谢
页:
[1]