- 博客(8)
- 收藏
- 关注
转载 windows 下 apache 部署 django python3.5
搞了3个小时。综合网上教程,各种坑,终于在win8上搞好了,记录一下:首先下载软件:我用的是python3.5.2,MSC v.1900对应的是VC14.0 也就是2015编译器,所以:从这里 www.apachelounge.com/download/ 下载对应版本的Apache2.4,一定要和你的python所对应的VC编译器版本对应,这里我安装的是httpd-2.4.1...
2018-01-25 16:16:00
246
转载 python 引入模块 笔记
记录一下今天在项目中 遇到python导入模块的问题,提醒自己以后注意:如图在views同级目录下定义了common包有两种调用方法:1.1 import common.common2 b = common.common.f(3)3 print(b) 这种方式调用时要写全名2.1 from common import co...
2017-11-24 21:56:00
195
转载 js 中 .getAttribute()问题
当用户不是通过js修改标签内的属性,.getAttribute()方法拿不到修改后的值:如在input标签中<input id ='1' type="text" name="username" value="请输入用户名" wjz="sss" onblur="func1(this)">,当用户通过输入框输入的value数据,在onblur 定义的函数中 用.ge...
2017-11-07 19:28:00
585
转载 html 文字图片垂直居中
方法一 :设置盒子高度与line-height相同,本方法适用于一行文字。图片垂直居中 和一行文字对齐 用属性vertical-align小图标和文字垂直对齐,小图标作为背景插入// attr:设置自己生成的属性,像selected checked这类即使用鼠标点过 他的值是undefinded,所以自有属性推荐用prop包含块(Contain...
2017-11-07 19:21:00
559
转载 mysql left join 运用
select student_id,student.sname FROM score LEFT JOIN student on student_id=student.sid where course_id in(select cid from course LEFT JOIN teacher on course.teacher_id=teacher.tid where teacher.t...
2017-10-18 17:51:00
152
转载 python中装饰器装饰类中的方法
1 ####在装饰器中加入self参数即可 2 def w_f(f): 3 def wrapper(self, *args, **kwargs): 4 f(self, *args, **kwargs) 5 # print(args[1]) 6 return wrapper 7 class school: 8...
2017-10-07 18:30:00
237
转载 自己写的新浪博客(代码)
http://blog.sina.com.cn/s/blog_14f8e54d10102xnnp.html -----------python中作为实参传入的变量是否可修改的问题http://blog.sina.com.cn/s/blog_14f8e54d10102xnp0.html -----...
2017-10-07 18:29:00
213
转载 关于在python类的方法中 实例化其他的类
1 class F1: 2 def __init__(self): 3 self.gender = 8 4 print(self.gender) 5 self.f3() 6 def f3(self): 7 self.age = 14 8 self.name =...
2017-10-07 18:26:00
835
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅