mango

  • 内容:安装Pillow 报错 麻烦帮我看一下 ``` Command "D:\PycharmProjects\myblog\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-38 nqvtzg\\Pillow\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --r ecord C:\Users\Administrator\AppData\Local\Temp\pip-record-x_rkvrrg\install-record.txt --single-version-externally-managed --compile --install-headers D:\PycharmProje cts\myblog\venv\include\site\python3.8\Pillow" failed with error code 1 in C:\Users\Administrator\AppData\Local\Temp\pip-install-38nqvtzg\Pillow\ (venv) D:\PycharmProjects\myblog>pip install python-deve Collecting python-deve Could not find a version that satisfies the requirement python-deve (from versions: ) No matching distribution found for python-deve ```

  • 内容:from~~ .models~~ import Article 为什么是 .models 不是 models

  • 内容:Article.objects.all() 只是用类实力化了一个对象

  • 内容:应该说是 用这个AccountForm类下面的UserAdd方法实例化了成了对象obj

  • 内容:request.POST 从POST 的数据里面获取的啊。 AccountForm.UserAdd 是方法 也就是函数。括号里的(request.POST) 才是对象。 同时把 AccountForm.UserAdd(request.POST) 这个增加账号的动作又定义为了一个方法=函数=对象=obj