Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问,我运行test.py时为何没报错却没得到任何结果? #21

Closed
zeeqchu opened this issue Nov 16, 2016 · 2 comments
Closed

Comments

@zeeqchu
Copy link

zeeqchu commented Nov 16, 2016

@chyroc 感谢Chyroc的分享,弱问一下,为何我运行test.py时没有报错,却没有得到任何结果?然后我再写什么命令都没有反应了,这可能是什么问题啊,麻烦了

Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

========= RESTART: C:\chuzi\work\Python27\WechatSogou-master\test.py =========

print 1

image

@zeeqchu zeeqchu closed this as completed Nov 16, 2016
@zeeqchu zeeqchu reopened this Nov 16, 2016
@chyroc
Copy link
Owner

chyroc commented Nov 17, 2016

print(你获取的数据)

@zeeqchu
Copy link
Author

zeeqchu commented Nov 18, 2016

@chyroc 感谢回复指点~我是直接运行的test.py,然后print里面的变量也是没有反应,这里是运行结果。
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

========= RESTART: C:\chuzi\work\Python27\WechatSogou-master\test.py =========
print wechats
print wechat_infos
print wechat_articles
print name
print keywords

是否是python环境设置有问题?我从来没遇到过运行一段程序不报错,却导致后面没法用了的情况。
我在test.py中每一行添加一句《print 1》,发现就是这两句执行后python环境就没反应了
from wechatsogou.tools import *
from wechatsogou import *
会是环境有问题么?
image

@chyroc chyroc closed this as completed Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants