序列化器的作用: 在DRF框架中的序列器可进行序列化和反序列化。 1.序列化: 将model类对象转化成dict对象(供Response类使用) 2.反序列化:将dict对象转化成model类对象。 。。。。。