我的PHP&HTML网页中有一个画廊,我想单击一个按钮,然后下载发布为div背景的图像。此处的div对应于图像,它包含在主div中。 将鼠标悬停在以图片为背景的div上后,将显示下载按钮
代码是这样的,包括我的试用:
a = [1, 2, 3,4, 5, 6,8]
n = len(a)
x1 = a[0]
x2 = 1
for i in range(1, n):
## print (i)
#print (' ')
for i in range(1, n):
x1 = x1 ^ a[i]
print (a[i],x1)
print (' ')
for i in range(2, n + 2):
x2 = x2 ^ i
## print (i,x2)
##print (' ')
print (x1 ^ x2 )
它看起来像这样:
答案 0 :(得分:0)
将图像文件路径放置在 capture = cv2.VideoCapture(self.cam_id, cv2.CAP_V4L2)
scapture.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter_fourcc('M', 'J', 'P', 'G'))
width = 1920
height = 1080
capture.set(cv2.CAP_PROP_FRAME_WIDTH, width)
capture.set(cv2.CAP_PROP_FRAME_HEIGHT, height)
标记中:
href