`
elan1986
  • 浏览: 168060 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
很简单所以就不多解释了! path = 'E:\\PyWk\\nodepad_py\\' fp = open(path + 'm.txt') a = fp.readlines() a = [x.split('\t') for x in a] a = [[x[0],x[1].replace('\n','')] for x in a] print a fp.close() b = [[int(x[0]), int(x[1])] for x in a] b.sort() b = [str(x[0]) + '\t' + str(x[1]) + '\n' for x in b] f ...
#-*- coding:UTF-8-*- #Simple Cal ####################### from Tkinter import * def frame(root, side): w = Frame(root) w.pack(side=side, expand=YES, fill=BOTH) return w #end of def def button(root, side, text, command=None): w = Button(root, text=text, command=command) w.pack(side= ...

python 练习

继承 #-*- coding:UTF-8-*- class SchoolMember: def __init__(self, name, age): self.name = name self.age = age print '初始化%s' % self.name #end of def def tell(self): print '名字: %s 年龄: %s' % (self.name, self.age) #end of def #end of class class Teacher(SchoolMember): def __init__ ...
方法一: 1、在hibernate的xml配置文件中对有默认值字段的property添加(insert="false" update="false"): <property name="N_ISOK" type="java.lang.Long" insert="false" update="false">             <column name="N_ISOK" precision="22" scale=& ...
IMP数据时报20001错误 查了些资料,加了statistics=none imp user/user file=file.dmp full=y statistics=none 解决 参数说明 exp userid=user_name/user_pwd@net_service_name owner=user_name file=exp_user_name.dmp log=exp_user_name.log buffer=67108864 statistics=none grants=n consistent=y buffer缓冲区大小,64M,再往上也没有明显的性能提升 sta ...

数据库

批量删除用户的所有表、视图、sequence select 'drop table ' || table_name ||'cascade constraints;'||chr(13)||chr(10) from user_tables; --delete tables select 'drop view ' || view_name||' cascade constraints;'||chr(13)||chr(10) from user_views; --delete views select 'drop sequence ' || sequence_name||' cascade co ...
后台页面: t.jsp----提供数据 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%= request.getParameter("jsoncallback") %>({"data":{"name":"测试一","address":"湖南","greeting":" ...
package com.lch.httpclient; import java.io.IOException; import org.apache.commons.httpclient.Cookie; import org.apache.commons.httpclient.Header; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.HttpMet ...
取得时间相关的信息的话,要用到python time模块,python time模块里面有很多非常好用的功能,你可以去官方文档了解下,要取的当前时间的话,要取得当前时间的时间戳,时间戳好像是1970年到现在时间相隔的时间。 你可以试下下 ...
原文地址:http://blog.csdn.net/ambitiontan/archive/2006/01/06/572171.aspx 一般的情况下我们都是使用IE或者Navigator浏览器来访问一个WEB服务器,用来浏览页面查看信息或者提交一些数据等等。所访问的这些页面有的仅仅是一些普通的页面,有 ...

java 综合

JAVA 打包 CMD下进入WEB目录下 jar cvf cas.war *.* 安全证书 keytool -genkey -alias tomcat -keyalg RSA -keystore .keystore keytool -export -file myserver.crt -alias tomcat -keystore .keystore keytool -import -keystore cacerts -file myserver.crt -alias tomcat
原文地址:http://docs.jboss.org/jbossweb/latest/ssl-howto.html IMPORTANT NOTE: This Howto refers to usage of JSSE, that comes included with jdk 1.5 and higher. When using APR, JBoss Web will use OpenSSL, which uses a different configuration. The description below uses the variable name $CATALINA_HOME to ...
<Server> <!--APR library loader. Documentation at /docs/apr.html --> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -- ...
package com.lch.sso; import java.io.IOException; import java.util.logging.Logger; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.NameValuePair; import org.apache.commons.httpclient.method ...
Attribute: $(”p”).addClass(css中定义的样式类型); 给某个元素添加样式 $(”img”).attr({src:”test.jpg”,alt:”test Image”}); 给某个元素添加属性/值,参数是map $(”img”).attr(”src”,”test.jpg”); 给某个元素添加属性/值 $(”img”).attr(”title”, function() { return this.src }); 给某个元素添加属性/值 $(”元素名称”).html(); 获得该元素内的内容(元素,文本等) $(”元素名称”).html(”<b>new stu ...
Global site tag (gtag.js) - Google Analytics