1:源代码#!/usr/bin/env pythonname = raw_input('请输入您的姓名:')print 'Hello,', name运行时出错:y@y:~/my_note/my_python$ python 5.py File "5.py", line 3SyntaxError:.....
分类:
编程语言 时间:
2014-07-06 21:57:42
阅读次数:
236
//Situation System prompts"xxx is not in the sudoers file"(xxx equals the user name)while executing command "sudo": sudo-i Password: xxx ...
分类:
其他好文 时间:
2014-07-06 21:39:36
阅读次数:
175
第一步:在 /etc/yum.repos.d/ 目录下,建立名叫nginx.repo的软件源配置文件。 文件 nginx.repo 的内容是:[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releaseve...
分类:
其他好文 时间:
2014-07-06 20:40:06
阅读次数:
173
1、join方法——把列表的内容通过某个字符连接起来具体使用方法如下:>>> a = ['my', 'name', 'is', 'yaha']>>> ''.join(a)'mynameisyaha'>>> ' '.join(a)'my name is yaha'>>> '-'.join(a)'my-...
分类:
编程语言 时间:
2014-07-06 20:31:36
阅读次数:
204
/** * @version 0.1 * @author jianminlu * @update 2013-06-19 15:23 */(function ($) { /** * @name tabs 页卡函数 * @param {Object} ...
分类:
其他好文 时间:
2014-07-06 19:39:18
阅读次数:
210
mysql向表中某字段后追加一段字符串:update table_name set field=CONCAT(field,'',str)mysql 向表中某字段前加字符串update table_name set field=CONCAT('str',field)MySQL中concat函数使用方法...
分类:
数据库 时间:
2014-07-06 18:43:12
阅读次数:
265
1 /************************************************************************* 2 > File Name: my_socket.h 3 > Author:Monica 4 > Mail:liling...
分类:
编程语言 时间:
2014-07-06 16:30:11
阅读次数:
186
#include#includestruct test{ char name[20]; void (*func)(char *);};void tttfunc(char *name){ printf("current is %d\n",__LINE__); printf("%s\n",name);}...
分类:
系统相关 时间:
2014-07-06 15:44:49
阅读次数:
223
--查询所有数据库USE mastergoselect [name] from [sysdatabases] order by [name]--查询其中一个数据库test,就可以得到这个数据库中的所有的表名了,语句如下:USE testgoselect [id], [name] from [syso...
分类:
数据库 时间:
2014-07-06 15:31:11
阅读次数:
269
DECLARE @TableName VARCHAR(119)DECLARE @TableID INTDECLARE @ColName VARCHAR(111)DECLARE Table_Cursor CURSOR FOR SELECT [name],id FROM sysobjects WHERE...
分类:
数据库 时间:
2014-07-06 15:11:47
阅读次数:
280