上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 59 下一页

2017年5月21日

python判断一个对象是否可迭代

摘要: 如何判断一个对象是可迭代对象? 方法是通过collections模块的Iterable类型判断: 阅读全文

posted @ 2017-05-21 12:49 星河赵 阅读(7207) 评论(0) 推荐(0)

2017年5月17日

django 运行不同的settings

摘要: python manage.py runserver --settings=EMCRP.settings_local 阅读全文

posted @ 2017-05-17 15:25 星河赵 阅读(629) 评论(0) 推荐(0)

Ununtu 15.04 安装MySql(Django连接Mysql)

摘要: 本文介绍Ubuntu 15.04下安装MySQL ubuntu 15.04安装mysql django项目连接mysql 一.安装数据库 1.sudo apt-get install mysql-server 2.apt-get install client 3.sudo apt-get insta 阅读全文

posted @ 2017-05-17 10:01 星河赵 阅读(685) 评论(0) 推荐(0)

2017年5月16日

Linux SSH登录服务器报ECDSA host key "ip地址" for has changed and you have requested strict checking.错误

摘要: Linux SSH命令用了那么久,第一次遇到这样的错误:ECDSA host key "ip地址" for has changed and you have requested strict checking.记录下方便记忆。 解决方案:在终端上输入以下命令: 目的是清除你当前机器里关于你的远程服务 阅读全文

posted @ 2017-05-16 14:19 星河赵 阅读(525) 评论(0) 推荐(0)

2017年5月14日

解决将Ubuntu下导出的requirements.txt到Centos服务器上面出现pkg-resource的版本为0.0.0

摘要: 最直接有效的方法: 原因: 阅读全文

posted @ 2017-05-14 17:30 星河赵 阅读(469) 评论(0) 推荐(0)

2017年5月11日

Ubuntu安装Nginx和正确卸载Nginx Nginx相关

摘要: 1.Ubuntu下安装Nginx比较简单 敲入下列命令即可: 2.Ubuntu下卸载,稍不注意就会入坑 上面的命令基本上都能解决你在Ubuntu下安装卸载Nginx的问题。 3.查看nginx进程 Django的部署可以有很多方式,采用nginx+uwsgi的方式是其中比较常见的一种方式。 在这种方 阅读全文

posted @ 2017-05-11 13:57 星河赵 阅读(37547) 评论(0) 推荐(3)

2017年5月9日

jquery 情况form表单的所有内容

摘要: #project_file_upload 为表单的id $(':input','#project_file_upload') .not(':button, :submit, :reset, :hidden') .val('') .removeAttr('checked') .removeAttr('selected'); 阅读全文

posted @ 2017-05-09 17:21 星河赵 阅读(606) 评论(0) 推荐(0)

2017年5月5日

python把中文文档变为拼音

摘要: 缘由 新看到的一篇文章,被吓尿。Text Understanding from Scratch,认为word的cnn抽象能力还不够好,使用character来做cnn效果更佳。结果是,由于论文的使用的数据集里test和train有隐含的重叠,作者一度撤稿。 但是不妨碍这一思路的进展。由此扩展到中文内 阅读全文

posted @ 2017-05-05 14:28 星河赵 阅读(317) 评论(0) 推荐(0)

2017年5月2日

将多个文件夹内的txt合并

摘要: import os import re def text_create(name): """ 创建txt文件夹 """ desktop_path = '/home/xinghe/PycharmProjects/TestProject/naochuxie/' full_path = desktop_path + name + '.txt' file... 阅读全文

posted @ 2017-05-02 18:00 星河赵 阅读(841) 评论(0) 推荐(0)

2017年4月21日

django 将model转换为字典

摘要: from django.forms.models import model_to_dict from projects.models import ProjectInformation site = ProjectInformation.objects.get(id=6) dict = model_to_dict(site) dict {'CRFmethod': '', 'EDCpro... 阅读全文

posted @ 2017-04-21 11:53 星河赵 阅读(4978) 评论(0) 推荐(0)

上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 59 下一页

导航