I was wondering how you would print links to images from your directory. I tried messing around a bit and so far it doesn't work.
#!/usr/local/bin/python3
print('Content-type: text/html\n')
print ('<img src="/~NAME/images/figure_1.png">')
error:
CGIWrap encountered an error while attempting to execute this script:
Error Message: No such file or directory
Error Number: 2
you should add single quotation.
- print (<img src="/~NAME/images/figure_1.png">)
+ print ('<img src="/~NAME/images/figure_1.png">')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.