05 2015 档案

摘要:# encoding=utf-8class A(object): def __init__(self): print "初始化a" def run(self): print "运行a"class B(A): def __init__(self): ... 阅读全文
posted @ 2015-05-30 00:45 白云辉 阅读(292) 评论(0) 推荐(0)
摘要:# encoding=utf-8from app.models import Studentfrom flask import gimport refrom flask.ext.wtf import Formfrom wtforms import StringField, RadioField, P... 阅读全文
posted @ 2015-05-30 00:10 白云辉 阅读(789) 评论(0) 推荐(0)
摘要:remote: function (value, element, param) { //param 是你的rules中规定的参数,在这里肯定是remote中的参数了 //value是你输入的值 //element是你操作的元素,标签 if (this.optional(el... 阅读全文
posted @ 2015-05-28 16:58 白云辉 阅读(237) 评论(0) 推荐(0)
摘要:from flask import Flaskfrom flask.ext.sqlalchemy import SQLAlchemyfrom flask.ext.migrate import Migrate, MigrateCommandfrom flask.ext.script import Ma... 阅读全文
posted @ 2015-05-22 23:53 白云辉 阅读(1163) 评论(0) 推荐(0)
摘要:# encoding=utf-8# /home/bergus/tongbu/360共享/编程语言# /home/bergus/桌面# /home/bergus/test/hhimport osimport shutil# 把文件src_file移动到目录dest_filedef move(s... 阅读全文
posted @ 2015-05-21 12:40 白云辉 阅读(1447) 评论(0) 推荐(0)
摘要:1 # encoding=utf-8 2 import cmd 3 import sys 4 5 6 # cmd模块练习 7 8 class Client(cmd.Cmd): 9 10 '''11 1)cmdloop():类似与Tkinter的mainloop,运行Cmd解析... 阅读全文
posted @ 2015-05-21 09:12 白云辉 阅读(412) 评论(0) 推荐(0)
摘要:# Makefile for Sphinx documentation## You can set these variables from the command line.SPHINXOPTS ?=SPHINXBUILD ?= sphinx-buildPAPER ?=B... 阅读全文
posted @ 2015-05-08 12:00 白云辉 阅读(677) 评论(0) 推荐(0)