python 帮助文档查看
这个代码是基于python3.0写的,有许多不完善的地方,请自已修改。
# coding: utf-8
from tkinter import *
root = Tk()
root.title("python3.0查询")
#root.minsize(800,600)
#填充无用空间
Label(root).grid(ipady=5)
#11面板
class Frame11:
def __init__(self, root): #relief: SUNKEY,RIDGE,GROOVE,RAISED,FLAT,SOLID
frame = Frame(root, width=200, height=50, borderwidth=2, relief=GROOVE)
frame.grid(row=2, column=1, sticky=W + S)
self.keyLb = Label(frame, text="键入关键字:", font="Helvetica -12 bold")
self.keyLb.grid(row=5, column=0, sticky=W + S)
self.inputEn = Entry(frame, width=35)
self.inputEn.__name__ = "inputEn"
self.inputEn.grid(row=6, column=0)
self.inputEn.bind("<Return>", self.frashAll)
#根据用户的输入回车刷新所有相关联的显示组件:
def frashAll(self, event):
frame21.keyLs.delete(0, END)
frame21.frash()
frame22.frash()
#刷新自已的显示组件,由其它组件根据需要调用
def frash(self):
pass
#21面板
class Frame21:
def __init__(self, root):
frame = Frame(root, width=200, height=300, bo
相关文档:
#coding=utf-8
from newtest.wiki.models import WiKi
from django.template import loader, Context
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render_to_response
def index(request, pagename=""):
"""显示正常页面,对页面的文字做特殊的链接处理"""
......
import sys
import os
import datetime
import time
class ArgsDealwith:
def arg_environment(self, args):
filepath = ('PYTHON_PATH', 'path')
for i in filepath:
&nbs ......
http://www.cppblog.com/jacky2019/archive/2007/05/17/24269.html
c++中嵌入python入门1
本人是用vc2003+python2.5学习的,其它的也应该差不了多少
0. 坏境设置
把python的include/libs目录分别加到vc的include/lib directories中去。另外,由于python没有提供debug lib,体地说,就是没有提供python25_d.lib了。你可 ......
http://www.cppblog.com/oosky/archive/2005/10/11/639.html
Lesson 1 准备好学习Python的环境
Python 的官方网址:
www.python.org
点击下面连接就可以直接下载了,这里只提供了Windows下的Python。
http://www.python.org/ftp/python/2.4.2/python-2.4.2.msi
linux版本的我就不说了,因为如果你能够使用linux并安装 ......
之前学习第九章的排序小结的时候,对sort()排序方法不理解,因为括号里面带了自定义的比较函数。
后来查手册,才发现sort()里面本来就带了这样的参数。能够自定义比较方法,确实很灵活。
不仅如此,在网上查到一个博客,作者不单停留在这表面,还查究了sort()的排序算法,确实有意思。
全文抄录如下:
http://blog.done ......