摘要: This error occurs when you have MVC 2+ running hosted on IIS 7+, this is because ASP.NET 4 was not registered in IIS. In my case I was creating a MVC 3 project and hosting it on IIS 7.5. To fix it, m... 阅读全文
posted @ 2012-11-28 10:44 lone112 阅读(1322) 评论(0) 推荐(0) 编辑
摘要: 昨天包装方法在Client.py中,然后不能import ,这是为什么. 我用PyCharm. 后来用bing找到 python 要用packages 不能用folder.在IDE中添加packages 会自动添加 __init__.py 这是个空文件,有了它才能 import另一个目录中的model http://effbot.org/pyfaq/what-is-init-py-u... 阅读全文
posted @ 2012-11-06 10:40 lone112 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 第一次写. 本机Win7 64, Python27(x64) Python33(x64) 今天想试试Python写个截屏,刚看过入门PDF. 代码很简单 from PIL import ImageGrabimport osim = ImageGrab.grab()im.save("D:/temp/screenshot.jpg")os.execvp("mspaint",('mspain... 阅读全文
posted @ 2012-10-30 14:22 lone112 阅读(803) 评论(0) 推荐(0) 编辑