python选用mvc规划web使用athletemodel.py不显现数据ITeye - 超凡娱乐

python选用mvc规划web使用athletemodel.py不显现数据ITeye

2019-01-10 21:40:21 | 作者: 运骏 | 标签: 显现,点击,持续 | 浏览: 1191

今日,持续研讨python,在看到选用mvc规划web应用时,誊写athletemodel.py,点击保存。点击运转(按F5)

这时从头翻开了一个IDLE,我点击了封闭,还在本来的IDLE中持续操作,先写了dir(),显现成果正常,可是往下的操作就不正常了,

dir()

[AthleteList, __annotations__, __builtins__, __doc__, __file__, __loader__, __name__, __package__, __spec__, athl, athletemodel, athlist, data, data11, get_coach_data, get_from_store, pickle, put_to_store, the_files]

from athletemodel import put_to_store

the_files = [sarah.txt, julie.txt, mikey.txt, james.txt]

data11 = put_to_store(the_files)

data11

下面什么也不显现~~~为什么?

查google,找度娘,代码一字一字对,最终在点F5运转之后,翻开的新的IDLE中又写了一遍如上的代码,最终成果呈现了!莫非是因为改写编译的问题吗?

Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32

Type "copyright", "credits" or "license()" for more information.

 

==================== RESTART: C:\Python36\athletemodel.py ====================

dir()

[AthleteList, __annotations__, __builtins__, __doc__, __file__, __loader__, __name__, __package__, __spec__, get_coach_data, get_from_store, pickle, put_to_store]

the_files = [sarah.txt, julie.txt, mikey.txt, james.txt]

data11 = put_to_store(the_files)

data11

{Sarah Sweeney: [2:58, 2.58, 2:39, 2-25, 2-55, 2:54, 2.18, 2:55, 2:55, 2:22, 2-21, 2.22], Julie Jones: [2.59, 2.11, 2:11, 2:23, 3-10, 2-23, 3:10, 3.21, 3-21, 3.01, 3.02, 2:59], Mikey McManus: [2:22, 3.01, 3:01, 3.02, 3:02, 3.02, 3:22, 2.49, 2:38, 2:40, 2.22, 2-31], James Lee: [2-34, 3:21, 2.34, 2.45, 3.01, 2:01, 2:01, 3:10, 2-22, 2-01, 2.01, 2:16]}

 

 

版权声明
本文来源于网络,版权归原作者所有,其内容与观点不代表超凡娱乐立场。转载文章仅为传播更有价值的信息,如采编人员采编有误或者版权原因,请与我们联系,我们核实后立即修改或删除。

猜您喜欢的文章