我想在python中将多图像TIFF转换为PDF。 我像这样写代码。无论如何,这段代码都不能工作。我该怎么改呢? images = []
img = Image.open('multipage.tif')
for i in range(4):
try:
img.seek(i)
images.append(img)
except EOFError:
# Not enough frames in img
break
images[0].save('multipage.pdf',sav
我在写这段代码:
int main()
{
char text[SIZE], choice[SIZE];
printf("\nWelcome to Caesar's Cipher.\nDo you wish to encrypt or decrypt text?\n");
fgets(choice, SIZE, stdin);
if (strcmp(choice, "encrypt\n") == 0)
{
printf("\nInsert text to encrypt:\n");