博客
关于我
解决github图片不显示问题_2020/06/25更新
阅读量:212 次
发布时间:2019-02-28

本文共 1516 字,大约阅读时间需要 5 分钟。

解决 GitHub图片无法显示的问题

在课设参考开源项目时,发现GitHub上的示例图片普遍图裂?以下是针对该问题的详细解决方法:

解决方法:

  • 定位hosts文件:

    • 打开 C:\Windows\System32\drivers\etc 文件夹。
    • 找到并用记事本打开 hosts 文件。记得保存为文本文件以免修改原文件。
  • 复制指定地址:

    • 将以下地址逐一复制到hosts文件中,按换行符分隔:
      # GitHub151.101.184.133    assets-cdn.github.com151.101.184.133    raw.githubusercontent.com151.101.184.133    gist.githubusercontent.com151.101.184.133    cloud.githubusercontent.com151.101.184.133    camo.githubusercontent.com199.232.68.133     avatars0.githubusercontent.com199.232.28.133     avatars0.githubusercontent.com151.101.184.133    avatars1.githubusercontent.com199.232.68.133     avatars1.githubusercontent.com199.232.28.133     avatars2.githubusercontent.com151.101.184.133    avatars2.githubusercontent.com199.232.68.133     avatars3.githubusercontent.com151.101.184.133    avatars3.githubusercontent.com199.232.68.133     avatars4.githubusercontent.com151.101.184.133    avatars4.githubusercontent.com199.232.68.133     avatars5.githubusercontent.com151.101.184.133    avatars5.githubusercontent.com199.232.68.133     avatars6.githubusercontent.com151.101.184.133    avatars6.githubusercontent.com199.232.68.133     avatars7.githubusercontent.com151.101.184.133    avatars7.githubusercontent.com199.232.68.133     avatars8.githubusercontent.com151.101.184.133    avatars8.githubusercontent.com
    • 保存后,进入GitHub查看图片是否正常加载。
  • 注意事项:

    • 这些地址可能有时效性,建议定期检查并更新。
    • 复制过多地址可能导致网络问题,若遇到无法访问GitHub,建议逐步移除部分地址。
  • 测试效果

    • 保存修改后的hosts文件后,重新进入GitHub查看项目页面。
    • 检查图片是否正常加载,若仍有问题,可能需要寻找最新的hosts地址或其他解决方案。

    通过以上方法,希望能够解决GitHub图片加载问题,顺利完成课设参考工作。

    转载地址:http://imoi.baihongyu.com/

    你可能感兴趣的文章
    Python3.5中协程和未来/任务之间的区别?
    查看>>
    python3.5实现socket通讯(TCP)
    查看>>
    python3.6 ubuntu部署nginx、 uwsgi、 django
    查看>>
    Python3.6.3中,functools似乎不能用
    查看>>
    python3.6.5+cuda9+cudnn7.1+win10+tensorflow-gpu1.9.0下载配置
    查看>>
    python3.6使用pickle序列化class
    查看>>
    python3.6入门到高阶(全栈) day027 网络通信协议 osi七层模型
    查看>>
    Python3.6属性错误:模块‘;异步没有属性‘;运行‘;
    查看>>
    python3.6版本中的python-weka-wrapper安装失败,错误代码为%1
    查看>>
    Python3.7安装cv2踩过的坑
    查看>>
    python写txt文件
    查看>>
    python关于sorted排序函数详细解析 附实战代码(全)
    查看>>
    python3.8调用m文件,调用matlab
    查看>>
    python3.9新特性_Python 3.9 新特性速览
    查看>>
    Python3.x:遍历select下拉框获取value值
    查看>>
    python360百科_11月编程排行榜:Python超过Java成第二
    查看>>
    Python关于Paginator分页函数详细解析 附实战代码
    查看>>
    python3、ipython3、setup-tools、pip等环境搭建详细总结
    查看>>
    python3下使用cv2.imwrite存储带有中文路径图片或者绝对路径图片
    查看>>
    python3与django中@property详解
    查看>>