刚学python,学到了有关于类和对象的地方。对一个概念有点模糊,后来通过实践编码找到一定规律
在python中
class test(object):
id=2
name='tt' list=['tt','dd']
def change(self,newA,new_id):
self.id=new_id
self.age=new...
分类:
编程语言 时间:
2014-06-25 19:29:20
阅读次数:
267
这个需求来自于我最近练手的一个项目,在项目中我需要将一些自己发表的和收藏整理的网文集中到一个地方存放,如果全部采用手工操作工作量大而且繁琐,因此周公决定利用C#来实现。在很多地方都需要验证用户身份才可以进行下一步操作,这就免不了POST请求来登录,在实际过程中发现有些网站登录是HTTPS形式的,在解...
分类:
Web程序 时间:
2014-06-25 18:51:15
阅读次数:
259
一、Servlet实现文件上传,需要添加第三方提供的jar包下载地址:1)commons-fileupload-1.2.2-bin.zip :点击打开链接2)commons-io-2.3-bin.zip :点击打开链接 二、文件上传的表单提交方式必须是POST方式,编码类型:enctype="mul...
分类:
其他好文 时间:
2014-06-25 18:15:31
阅读次数:
245
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change执行 sudo xcode-select -swi...
分类:
其他好文 时间:
2014-06-25 16:13:31
阅读次数:
190
This post introduces the benefits of the Declaring Dependencies on the top of the function or module.
分类:
编程语言 时间:
2014-06-25 15:15:36
阅读次数:
199
文件只是验证了$_FILES["file"]["type"]。没有其他地方进行验证。可以修改POST信息中的$_FILES["file"]["type"]文件类型为图片的类型就可绕过。提交POST后,关闭代理,就能发现成功上传了PHP了。
分类:
其他好文 时间:
2014-06-25 14:44:38
阅读次数:
151
JavaScript获取某年某月的最后一天
1、实现源码
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in th...
分类:
编程语言 时间:
2014-06-24 22:36:13
阅读次数:
350
一:勘误
classifier类中: def fprob(self, f, cat):
if self.catcount(cat) == 0:
return 0
#notice: rember change int to double or float
# + 0.0 or *1.0 is ok, other wise, may get 0.
return self.fc...
分类:
其他好文 时间:
2014-06-24 17:49:42
阅读次数:
211
本节分析配置文件的解析,即PollingPropertiesFileConfigurationProvider.FileWatcherRunnable.run中的eventBus.post(getConfiguration())。分析getConfiguration()方法。此方法在AbstractConfigurationProvider类中实现了,并且这个类也初始化了三大组件的工厂类:this...
分类:
编程语言 时间:
2014-06-24 17:21:53
阅读次数:
547
#vimpost-commit#!/bin/bash
REPOS="$1"
REV="$2"
SVNLOOK="/usr/bin/svnlook"
echo"`date+%F`">>/tmp/post.log
echo"REPOS=$1REV=$2">>/tmp/post.log
echo-e"\$@=$@#">>/tmp/post.log
echo-e"`date+%F`end\n">>/tmp/post.log
$SVNLOOKchanged"$REPOS..
分类:
其他好文 时间:
2014-06-24 16:38:56
阅读次数:
282