2007年06月11日 星期一 16:52
¤j®a¦n¡A§Ú¥Î¦p¤U¥N½X¡G
for j in range(cur.rowcount):
spc_sql = "INSERT " + spc_table + "(Cust, Family, Sku,
WorkOrder, Line, Station, \
ProdCode, ScanTime, UserID, Status, FailLine, FailStation,
FailTime, FailCode, \
FailLocation, FailPoint, FailArea, FailStationType,
FailType, ActionCode, \
ActionTime, ActionBy, FailPart, OutRepairTime, OutRepairBy)
VALUES('%s', '%s', \
'%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s',
'%s', '%s', '%s', \
'%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')"
% (colcount[0 + 25 * j], \
colcount[1 + 25 * j], colcount[2 + 25 * j], colcount[3 + 25
* j], colcount[4 + 25 * j], \
colcount[5 + 25 * j], colcount[6 + 25 * j], colcount[7 + 25
* j], colcount[8 + 25 * j], \
colcount[9 + 25 * j], colcount[10 + 25 * j], colcount[11 +
25 * j], colcount[12 + 25 * j], \
colcount[13 + 25 * j], colcount[14 + 25 * j], colcount[15 +
25 * j], colcount[16 + 25 * j], \
colcount[17 + 25 * j], colcount[18 + 25 * j], colcount[19 +
25 * j], colcount[20 + 25 * j], \
colcount[21 + 25 * j], colcount[22 + 25 * j], colcount[23 +
25 * j], colcount[24 + 25 * j])
½T©w cur.rowcount ªºÈ¤j©ó 1000¡A¦ý¬O¦b¹ê»Ú¾Þ§@®É¡A·í²Ä¤@¦æ´¡¤J¼Æ¾Ú®w§¹¦¨¡A°õ¦æ²Ä¤G¦æ®É¡A´N·|³ø¿ù¡GIndexError: list
index out of range¡C¬Ý¤F¥b¤Ñ¡A¨Sµo²{¨ºùØ¿ù»~¡A¤j®aÀ°¦£¬Ý¤U¿ù»~¦bþ¨à¡AÁÂÁ¡C
-------------- 下一部分 --------------
¤@?HTMLªþ¥ó³Q²¾°£...
URL: http://python.cn/pipermail/python-chinese/attachments/20070611/c40e0cd2/attachment.htm
Zeuux © 2025
京ICP备05028076号