如何在图像和标签上应用锚标签通过脚本

问题描述

如何将图像和标签分别放入锚标签? href在图片和标签标签上保持不变。

任何人都可以修改此代码吗?

我想要这样的东西:

   (venv) root@scw-determined-panini:/app# pip install psycopg2
    Collecting psycopg2
      Using cached https://files.pythonhosted.org/packages/a8/8f/1c5690eebf148d1d1554fc00ccf9101e134636553dbb75bdfef4f85d7647/psycopg2-2.8.5.tar.gz
    Building wheels for collected packages: psycopg2
      Running setup.py bdist_wheel for psycopg2 ... error
      Complete output from command /app/venv/bin/python3.8 -u -c "import setuptools,tokenize;__file__='/tmp/pip-build-psll6xe_/psycopg2/setup.py';f=getattr(tokenize,'open',open)(__file__);code=f.read().replace('\r\n','\n');f.close();exec(compile(code,__file__,'exec'))" bdist_wheel -d /tmp/tmp52or8xexpip-wheel- --python-tag cp38:
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.8
      creating build/lib.linux-x86_64-3.8/psycopg2
      copying lib/_json.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/pool.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/tz.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/_lru_cache.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/extensions.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/_range.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/errors.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/compat.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/sql.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/errorcodes.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/extras.py -> build/lib.linux-x86_64-3.8/psycopg2
      copying lib/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2
      running build_ext
      building 'psycopg2._psycopg' extension
      creating build/temp.linux-x86_64-3.8
      creating build/temp.linux-x86_64-3.8/psycopg
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_VERSION=2.8.5 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120004 -DHAVE_LO64=1 -I/app/venv/include -I/usr/include/python3.8 -I. -I/usr/include/postgresql -I/usr/include/postgresql/12/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.8/psycopg/psycopgmodule.o -Wdeclaration-after-statement
      In file included from psycopg/psycopgmodule.c:28:0:
      ./psycopg/psycopg.h:36:10: fatal error: libpq-fe.h: No such file or directory
       #include <libpq-fe.h>
                ^~~~~~~~~~~~
      compilation terminated.
      
      It appears you are missing some prerequisite to build the package from source.
      
      You may install a binary package by installing 'psycopg2-binary' from PyPI.
      If you want to install psycopg2 from source,please install the packages
      required for the build and try again.
      
      For further information please check the 'doc/src/install.rst' file (also at
      <https://www.psycopg.org/docs/install.html>).
      
      error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
      
      ----------------------------------------
      Failed building wheel for psycopg2
      Running setup.py clean for psycopg2
    Failed to build psycopg2
    Installing collected packages: psycopg2
      Running setup.py install for psycopg2 ... error
        Complete output from command /app/venv/bin/python3.8 -u -c "import setuptools,'exec'))" install --record /tmp/pip-x62dcj9d-record/install-record.txt --single-version-externally-managed --compile --install-headers /app/venv/include/site/python3.8/psycopg2:
        running install
        running build
        running build_py
        creating build
        creating build/lib.linux-x86_64-3.8
        creating build/lib.linux-x86_64-3.8/psycopg2
        copying lib/_json.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/pool.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/tz.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/_lru_cache.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/extensions.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/_range.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/errors.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/compat.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/sql.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/errorcodes.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/extras.py -> build/lib.linux-x86_64-3.8/psycopg2
        copying lib/__init__.py -> build/lib.linux-x86_64-3.8/psycopg2
        running build_ext
        building 'psycopg2._psycopg' extension
        creating build/temp.linux-x86_64-3.8
        creating build/temp.linux-x86_64-3.8/psycopg
        x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_VERSION=2.8.5 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=120004 -DHAVE_LO64=1 -I/app/venv/include -I/usr/include/python3.8 -I. -I/usr/include/postgresql -I/usr/include/postgresql/12/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.8/psycopg/psycopgmodule.o -Wdeclaration-after-statement
        In file included from psycopg/psycopgmodule.c:28:0:
        ./psycopg/psycopg.h:36:10: fatal error: libpq-fe.h: No such file or directory
         #include <libpq-fe.h>
                  ^~~~~~~~~~~~
        compilation terminated.
        
        It appears you are missing some prerequisite to build the package from source.
        
        You may install a binary package by installing 'psycopg2-binary' from PyPI.
        If you want to install psycopg2 from source,please install the packages
        required for the build and try again.
        
        For further information please check the 'doc/src/install.rst' file (also at
        <https://www.psycopg.org/docs/install.html>).
        
        error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
        
        ----------------------------------------
    Command "/app/venv/bin/python3.8 -u -c "import setuptools,'exec'))" install --record /tmp/pip-x62dcj9d-record/install-record.txt --single-version-externally-managed --compile --install-headers /app/venv/include/site/python3.8/psycopg2" failed with error code 1 in /tmp/pip-build-psll6xe_/psycopg2/
    (venv) root@scw-determined-panini:/app# psycopg2-binary
    psycopg2-binary: command not found
    (venv) root@scw-determined-panini:/app# pip install psycopg2-binary
    Requirement already satisfied: psycopg2-binary in ./venv/lib/python3.8/site-packages

原始脚本

<li>
   <a><img /></a>
   <a><label></label></a>
</li>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...