错误140624 0:53:42 [ERROR] /usr/libexec/mysqld: Incorrect key file for table './xx/xxx.MYI'; try to repair it140624 0:53:42 [ERROR] /usr/libexec/mysqld....
分类:
数据库 时间:
2014-06-25 18:38:51
阅读次数:
900
命令简介: 该命令用来识别文件类型,也可用来辨别一些文件的编码格式。它是通过查看文件的头部信息来获取文件类型,而不是像Windows通过扩展名来确定文件类型的。 执行权限 :All User 指令所在路径:/usr/bin/file 命令语法: file [ -bchikLnNprsvz ] [ -...
分类:
系统相关 时间:
2014-06-25 14:25:15
阅读次数:
312
#!/usr/bin/envpython
#-*-encoding:UTF-8-*-
##########################
#1.正向计时\逆计时\时钟
#2.使用sizer管理布局
##########################
importwx
importtime
importwx.gizmosasgizmos
ICON_START=‘|>‘
ICON_SUSPEND=‘||‘
ICON_RESTART=‘<|‘
TIMETOCOUNT=4..
分类:
编程语言 时间:
2014-06-25 06:28:23
阅读次数:
408
例子:实现目标,用Python编写用户登录验证脚本。知识点:1、while和if控制流2、运算表达式验证过程:脚本:#!/usr/bin/envpython#filename:Userloginauthentication#importsysname=‘Tiger‘passwd=‘123456‘counter=0times=3whileTrue:#-----------无限循环username=raw_input(‘..
分类:
编程语言 时间:
2014-06-25 06:19:51
阅读次数:
272
linux操作系统中,linux库文件路径还是比较常用的,于是我研究了一下linux库文件路径,在这里拿出来和大家分享一下,希望对大家有用。库文件在连接(静态库和共享库)和运行(仅限于使用共享库的程序)时被使用,其搜索路径是在系统中进行设置的。一般 Linux 系统把 /lib 和 /usr/lib...
分类:
系统相关 时间:
2014-06-25 00:50:23
阅读次数:
385
raw_input()python内建函数将所有输入看做字符串,返回字符串类型input()对待纯数字输入时具有自己的特性,它返回所输入的数字的类型(int,float)input()本质上还是使用raw_input()来实现的,只是调用完raw_input()之后再调用eval()函数例子:#!/usr/bin/envpythonthis_year=2..
分类:
编程语言 时间:
2014-06-24 16:57:50
阅读次数:
297
要求,输入name不为空,输入次数最多3次,3次后跳出程序;知识点:raw_inputstr转intwhilifelifelsecontinuebreakfor导入模块引用变量值格式化输出vim#!/usr/bin/envpython
importsys
user_name="carson"
this_year=2014
counter=0
whileTrue:
ifcounter<3:
name=raw_input(..
分类:
其他好文 时间:
2014-06-24 16:52:27
阅读次数:
290
#vimpost-commit#!/bin/bash
REPOS="$1"
REV="$2"
SVNLOOK="/usr/bin/svnlook"
echo"`date+%F`">>/tmp/post.log
echo"REPOS=$1REV=$2">>/tmp/post.log
echo-e"\$@=$@#">>/tmp/post.log
echo-e"`date+%F`end\n">>/tmp/post.log
$SVNLOOKchanged"$REPOS..
分类:
其他好文 时间:
2014-06-24 16:38:56
阅读次数:
282
[root@localhost~]#system-config-kickstartXlib:extension"RANDR"missingondisplay"localhost:10.0"./usr/share/system-config-kickstart/kickstartGui.py:103:GtkWarning:GtkSpinButton:settinganadjustmentwithnon-zeropagesizeisdeprecatedxml=gtk.glade.XML("/usr/share/s..
分类:
其他好文 时间:
2014-06-24 16:36:29
阅读次数:
553