摘要: 以上代码仅检测Adobe相关软件与软件安装位置,如需检测其他软件可自行修改 阅读全文
posted @ 2018-08-13 16:00 郝文 阅读(577) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. Do this without extra space. 方法一: 思路: 判断一个整数是否为回文结构与Reverse Integer思路几乎相同,稍微修改即可。 方法二: 思路:将x转化为字符串再翻转,再将 阅读全文
posted @ 2018-02-06 17:08 郝文 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an environment which cou 阅读全文
posted @ 2018-02-01 16:55 郝文 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2018-02-01 15:45 郝文 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Django默认安装最新版本:pip install django Django后面接版本号就可以了:pip install django==1.11.7如果使用pip install安装库比较慢,可以用豆瓣的镜像:pip install django==1.11.7 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 阅读全文
posted @ 2017-12-12 13:53 郝文 阅读(17203) 评论(0) 推荐(1) 编辑
摘要: 数据库在通过连接两张或多张表来返回记录时,都会生成一张中间的临时表,然后再将这张临时表返回给用户。 在使用left jion时,on和where条件的区别如下: 1、 on条件是在生成临时表时使用的条件,它不管on中的条件是否为真,都会返回左边表中的记录。 2、where条件是在临时表生成好后,再对 阅读全文
posted @ 2017-12-08 09:13 郝文 阅读(17091) 评论(2) 推荐(3) 编辑
摘要: 只需在HTML页面中加入{% autoescape off %}即可! {% autoescape off %} 需要显示的数据 (% endautoescap %} 阅读全文
posted @ 2017-12-05 23:26 郝文 阅读(2196) 评论(0) 推荐(0) 编辑
摘要: html页面从数据库中读出DateTimeField字段时,显示的时间格式和数据库中存放的格式不一致,比如数据库字段内容为2017-06-03 13:00:00,但是页面显示的却是Apr. 03, 2017, 1 p.m. 为了页面和数据库中显示一致,需要在页面格式化时间,需要添加<td>{{ in 阅读全文
posted @ 2017-12-03 21:45 郝文 阅读(6032) 评论(0) 推荐(0) 编辑
摘要: 1.安装报错信息: error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27 或者fatal error C1083: Cannot open include file: 'config-win 阅读全文
posted @ 2017-11-09 09:36 郝文 阅读(5612) 评论(0) 推荐(0) 编辑
摘要: 1.右击“我的电脑”,选择“属性”, 2.选择“高级系统设置”, 3.选择“环境变量”, 4。在“系统变量”中选中“Path”,再点“新建”。(Python、Scripts两个目录都要加,只加Python并未配置成功) 5.打开一个cmd测试,测试成功。 阅读全文
posted @ 2017-03-19 20:20 郝文 阅读(1911) 评论(0) 推荐(0) 编辑