![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
大地之力
这个作者很懒,什么都没留下…
展开
-
关于django中修改js css文件但浏览器无法及时与之改变的问题
其实,答案很简单,只要弄清原创 2014-09-07 00:45:02 · 1339 阅读 · 1 评论 -
django 之设置media static
STATIC_URL = '/static/'STATICFILES_DIRS=( 'loginin/src/media', 'loginin/src/static',)#loginin/src/staticSTATIC_ROOT=os.path.join(BASE_DIR,'loginin/static').replace("\\","/")#me原创 2014-09-07 13:08:37 · 3073 阅读 · 1 评论 -
一入python深似海--变量和对象
时间 2014-06-17 15:24:57 CSDN博客相似文章 (0) 原文 http://blog.csdn.net/u010367506/article/details/31767761 添加到推刊收藏到推刊 创建推刊 收 藏取消 已收藏到推刊!转载 2014-08-29 21:55:35 · 307 阅读 · 0 评论 -
用pyinstaller 把python文件转换为exe文件
在你安装好python 2.7版本后,就来考虑如何把python文件原创 2014-08-29 15:54:05 · 453 阅读 · 0 评论 -
当出现error: Unable to find vcvarsall.bat该如何处理
For Windows installations:While running setup.py for package installations, Python 2.7 searches for an installed Visual Studio 2008. You can trick Python to use a newer Visual Studio by setting the原创 2014-08-30 09:11:44 · 442 阅读 · 0 评论 -
django 之加载静态文件(Css.js.image)
在settings.py中设置:STATIC_URL = '/static/'# static _dirs#静态文件STATICFILES_DIRS=( 'pyproject1/src/static',)STATIC_ROOT =os.path.join(BASE_DIR, 'pyproject1/static').replace('\\','/')原创 2014-09-04 16:26:12 · 666 阅读 · 0 评论 -
用pyinstaller把python源文件打包成exe可执行文件
优点: 1. pyinstaller 是跨平台的可以用在linux和windows系统上 2. 操作非常简单,几个命令就搞定了,这个比py2exe容易用多了 缺点: 1. 打包后的体积过大,因为要带python.dll库,所以没有办法 2. 不能和tkinter 等库,打包成单独一个文件 使用方法: 1. 去官方网站http://ww转载 2014-11-18 19:54:29 · 574 阅读 · 0 评论 -
使用python的内置ctypes模块与c、c++写的dll进行交互
原文地址:http://www.2cto.com/kf/201112/113910.html调用C编写的动态链接库代码示例from ctypes import * dll = CDLL("add.dll")#加载cdecl的dll。另外加载stdcall的dll的方式是WinDLL("dllpath") sum=dll.Add(1, 102) 若参数为指针p=1转载 2014-12-20 23:13:29 · 423 阅读 · 0 评论