摘要: #!/usr/bin/env python# -*- coding: utf-8 -*- import osfrom twisted.application import servicefrom twisted.web import server, staticfrom twisted.web.re... 阅读全文
posted @ 2015-06-22 00:46 白云辉 阅读(260) 评论(0) 推荐(0) 编辑
摘要: from flask import Flask, render_template, gapp = Flask(__name__)@app.route("/")def index(): return render_template("index.html")# run in under twis... 阅读全文
posted @ 2015-06-21 23:18 白云辉 阅读(813) 评论(0) 推荐(0) 编辑
摘要: 免费的编程中文书籍索引https://github.com/justjavac/free-programming-books-zh_CN免费书籍https://github.com/vhf/free-programming-books博客资料http://www.wklken.me/categori... 阅读全文
posted @ 2015-06-16 00:45 白云辉 阅读(171) 评论(0) 推荐(0) 编辑
摘要: # 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 白云辉 阅读(282) 评论(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 白云辉 阅读(772) 评论(0) 推荐(0) 编辑
摘要: remote: function (value, element, param) { //param 是你的rules中规定的参数,在这里肯定是remote中的参数了 //value是你输入的值 //element是你操作的元素,标签 if (this.optional(el... 阅读全文
posted @ 2015-05-28 16:58 白云辉 阅读(226) 评论(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 白云辉 阅读(1156) 评论(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 白云辉 阅读(1439) 评论(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 白云辉 阅读(400) 评论(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 白云辉 阅读(665) 评论(0) 推荐(0) 编辑