运行代码时,数据库列表受到影响,但该值为零 我希望能够使用“菜单”表中的复选框选择(排序)多个值(item_ID)并将它们存储在不同的列中,但存储在同一表(“ order_table”)中
def encode(msgPic,original):
#Assume msgPic and original have same dimensions
#First, make all red pixels even
for pxl in getPixels(original):
#Using modulo operator to test oddness
if (getRed(pxl) % 2) == 1:
setRed(pxl, getRed(pxl) - 1)
# Second, wherever there's black in msgPic
# make odd the red in the corresponding original pixel
for x in range(0, getWidth(original)):
for y in range(0, getHeight(original)):
msgPxl = getPixel(msgPic,x,y)
origPxl = getPixel(original,x,y)
if (distance(getColor(msgPxl), black) < 100.0):
# It's a message pixel! Make the red value odd.
setRed(origPxl, getRed(origPxl)+1)
当我选择多个值并提交时,我希望能够将这些值存储在具有不同列的“ order_table”表中。