理论上我发的每个短文,直接复制放到py里面,python xx.py是可以执行的,不过因为版本,编码什么的问题会有报错,详见这里 报错: SyntaxError: Non-ASCII character '\xd4' in file xxx.py on line 1, but no encoding declared; 解决:在py文件首行加 # coding: UTF-8 如果是linux系统,最好再加上 #!/usr/bin/python 告诉python在哪里 报错:Indentation
在使用MVC的时候我们经常会在Controller的Action方法中返回JsonResult对象,但是有时候你如果序列化的对象太大会导致JsonResult从Controller的Action返回后抛出异常,显示Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJso