BIG FUCK for MODx MODx document is not that good ... at least in my opint of view. I spend hours to search martirals to find out how to build a CMP by using MIGX in MODX 2.3. The officail doument are written for 2.2, but since 2.3, it changed a lot
import io # io模块里面主要使用StringIo和BytesIo # StringIo f = io.StringIO() # 像使用open函数创建文件一样,生成一个句柄 # 可以直接向f里面写入数据 f.write("when i was young ,i'd listen to the radio\n") f.write("我是你爸爸\n") f.write("hello,mother fucker") # 获取内容可以通过ge