Ext.tree.TreePanel 主要配置项: root:树的根节点。 rootVisible:是否显示根节点,默认为true。 useArrows:是否在树中使用Vista样式箭头,默认为false。 lines:是否显示树线,默认为true。 loader:树节点的加载器,默认为Ext.tr ...
分类:
Web程序 时间:
2016-04-10 14:21:34
阅读次数:
166
最近学习批处理,看到一个大神写得猜字游戏,看懂了之后也仿了一个一模一样的,今天就来说道说道。先看下源码和效果图。
@echo off
color 0f
mode con:cols=55 lines=30
title 猜数字游戏 By leo
echo.&echo.
echo.&echo ***** 游戏规则 *****
echo.&echo 程序会自动生成一组四...
分类:
其他好文 时间:
2016-04-06 09:47:55
阅读次数:
417
备忘,其实是想知道该进程使用的内存状况。 首先要获取系统的内存信息: def memory_stat(): ''' return the memory info ''' mem = {} stat = {} f = open('/proc/meminfo') lines = f.readlines( ...
分类:
编程语言 时间:
2016-04-06 09:27:37
阅读次数:
157
Defense Lines After the last war devastated your country, you - as the king of the land of Ardenia - decided it washigh time to improve the defense of ...
分类:
编程语言 时间:
2016-04-03 20:25:15
阅读次数:
233
POJ3662 Telephone Lines 题目大意:要在顶点1到顶点n之间建一条路径,假设这条路径有m条边,其中有k条边是免费的,剩余m-k条边是要收费的, 求这m-k条边中花费最大的一条边的最小花费. 让m条边中原本花费最大的k条边成为免费的边,则这时m-k条边中花费最大的一条边的花费最小. ...
分类:
其他好文 时间:
2016-04-03 17:21:35
阅读次数:
218
今天封装了一个Line类。负责在昨天写的窗体上绘制线条。 OpenGL画图是通过给glBegin函数设置參数达成的,绘制线条有三个不同的參数: GL_LINES : 绘制连接两个点的线段(绘制的端点位于glBegin函数与glEnd函数之间) GL_LINE_STRIP : 绘制首尾相连的折线 GL ...
分类:
其他好文 时间:
2016-03-31 12:24:01
阅读次数:
185
Click here for a newer version (Knet7) of this tutorial. The code used in this version (KUnet) has been deprecated. There are a number of deep learnin ...
分类:
其他好文 时间:
2016-03-28 13:37:35
阅读次数:
256
[root@nginxscripts]#catuseradd.sh#!/bin/sh#editortangbo#QQ79313760################start#########################USERS_INFO=/root/addusers.txtUSERADD=/usr/sbin/useraddPASSWD=/usr/bin/passwdCUT=/bin/cutwhilereadLINESdoUSERNAME=`echo$LINES|$CUT-f1-d‘‘`PASSWORD..
分类:
其他好文 时间:
2016-03-24 13:25:48
阅读次数:
158
传送门 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e
分类:
其他好文 时间:
2016-03-23 19:44:33
阅读次数:
171
一、查看当前所有表空间使用情况set pages 300set lines 300SELECT UPPER(F.TABLESPACE_NAME) "表空间名",D.TOT_GROOTTE_MB "表空间大小(M)",D.TOT_GROOTTE_MB - F.TOTAL_BYTES "已使用空间(M)...
分类:
其他好文 时间:
2016-03-21 21:37:06
阅读次数:
206