当前位置: 首页 > news >正文

wordpress get_children做seo排名好的公司

wordpress get_children,做seo排名好的公司,模具设计三大软件,wordpress5.6在django前端页面上展示的数据,还是使用django模板自带的语法 方式1 不推荐使用 直接使用 【df.to_html(indexFalse)】 使用to_html他会生成一个最基本的表格没有任何的样式,一点都不好看,如果有需要的话可以自行修改表格的样式,…

在django前端页面上展示的数据,还是使用django模板自带的语法

方式1 不推荐使用 直接使用 【df.to_html(index=False)】

        使用to_html他会生成一个最基本的表格没有任何的样式,一点都不好看,如果有需要的话可以自行修改表格的样式,但博主觉得这样的方式太麻烦,

        后端

df = pd.DataFrame({'Name': ['John', 'Alice', 'Smith'],'Age': [30, 25, 35],'City': ['New York', 'London', 'Paris']})# 将DataFrame转换为HTML字符串
table_html = df.to_html(index=False)# 将表格数据和其他数据打包成上下文对象
content= {'table_html': table_html}
return render(request, '自己的前端网页', content)

        前端

<!DOCTYPE html>
<html>
<head>
</head>
<body><table>{{ table_html | safe }}</table><!-- 其他页面内容 -->
</body>
</html>

         效果

        

方式2  推荐使用 将df转为字典放到特定的表格下

        这个表格是博主已经写好<table>有一定的样式了,这个方式就是将每一行数据给放到表格里面,相当于只是传递了数值。

        下面的django模板语法能够动态的更新标题行和数据,数据表格有变动不需要修改前端模板

         后端

df = pd.DataFrame({'Name': ['John', 'Alice', 'Smith'],'Age': [30, 25, 35],'City': ['New York', 'London', 'Paris']})
table_data = df.to_dict('records')
table_headers = df.columns.tolist()
content = {'table_headers':table_headers,'table_data': table_data
}
return render(request, '自己的前端网页', content)

        前端

<!DOCTYPE html>
<html>
<head>
</head>
<body><div class="table-responsive"><div id="example_wrapper" class="dataTables_wrapper"><table id="example" class="display table dataTable" role="grid"aria-describedby="example_info"><thead><tr>{% for header in table_headers %}<th>{{ header }}</th>{% endfor %}</tr></thead><tbody>{% for row in table_data %}<tr>{% for value in row.values %}<td>{{ value }}</td>{% endfor %}</tr>{% endfor %}</tbody></table></div></div><!-- 其他页面内容 -->
</body>
</html>

         效果


文章转载自:
http://stunsail.Lnnc.cn
http://guan.Lnnc.cn
http://carneous.Lnnc.cn
http://humanoid.Lnnc.cn
http://sunos.Lnnc.cn
http://baffler.Lnnc.cn
http://bowdlerism.Lnnc.cn
http://nonmiscible.Lnnc.cn
http://encipher.Lnnc.cn
http://evil.Lnnc.cn
http://gannet.Lnnc.cn
http://abirritate.Lnnc.cn
http://interpellator.Lnnc.cn
http://somnolent.Lnnc.cn
http://egotize.Lnnc.cn
http://heavyset.Lnnc.cn
http://polygonal.Lnnc.cn
http://volkspele.Lnnc.cn
http://draftsman.Lnnc.cn
http://continentality.Lnnc.cn
http://disencumber.Lnnc.cn
http://antasthmatic.Lnnc.cn
http://sheshbesh.Lnnc.cn
http://chalkiness.Lnnc.cn
http://tractably.Lnnc.cn
http://fingerboard.Lnnc.cn
http://degradation.Lnnc.cn
http://aegrotat.Lnnc.cn
http://capsulize.Lnnc.cn
http://scutiform.Lnnc.cn
http://prefectural.Lnnc.cn
http://triethylamine.Lnnc.cn
http://skutterudite.Lnnc.cn
http://sabe.Lnnc.cn
http://tenement.Lnnc.cn
http://uneducated.Lnnc.cn
http://zygomorphic.Lnnc.cn
http://arquebusier.Lnnc.cn
http://hooligan.Lnnc.cn
http://guayaquil.Lnnc.cn
http://habitue.Lnnc.cn
http://trichomonad.Lnnc.cn
http://homage.Lnnc.cn
http://hyperparasite.Lnnc.cn
http://corchorus.Lnnc.cn
http://spaceward.Lnnc.cn
http://tuvalu.Lnnc.cn
http://grutch.Lnnc.cn
http://bespoken.Lnnc.cn
http://shoogle.Lnnc.cn
http://absquatulater.Lnnc.cn
http://teleology.Lnnc.cn
http://galimatias.Lnnc.cn
http://magilp.Lnnc.cn
http://hopsacking.Lnnc.cn
http://whiskers.Lnnc.cn
http://sleuth.Lnnc.cn
http://daffydowndilly.Lnnc.cn
http://preponderance.Lnnc.cn
http://pseudorandom.Lnnc.cn
http://ziarat.Lnnc.cn
http://pulldown.Lnnc.cn
http://skiey.Lnnc.cn
http://pessimal.Lnnc.cn
http://study.Lnnc.cn
http://dredging.Lnnc.cn
http://muppet.Lnnc.cn
http://pomology.Lnnc.cn
http://confederal.Lnnc.cn
http://p.Lnnc.cn
http://foa.Lnnc.cn
http://serrae.Lnnc.cn
http://nevadan.Lnnc.cn
http://discriminably.Lnnc.cn
http://glissando.Lnnc.cn
http://usnach.Lnnc.cn
http://czarism.Lnnc.cn
http://gulliver.Lnnc.cn
http://mano.Lnnc.cn
http://infundibula.Lnnc.cn
http://bibasic.Lnnc.cn
http://chamberer.Lnnc.cn
http://headland.Lnnc.cn
http://clypeus.Lnnc.cn
http://hoopla.Lnnc.cn
http://inexpansible.Lnnc.cn
http://entellus.Lnnc.cn
http://nyasaland.Lnnc.cn
http://role.Lnnc.cn
http://qef.Lnnc.cn
http://opinionated.Lnnc.cn
http://antispasmodic.Lnnc.cn
http://internship.Lnnc.cn
http://eightpenny.Lnnc.cn
http://opinion.Lnnc.cn
http://nosophobia.Lnnc.cn
http://countrify.Lnnc.cn
http://monopolism.Lnnc.cn
http://emic.Lnnc.cn
http://cassaba.Lnnc.cn
http://www.dt0577.cn/news/93752.html

相关文章:

  • 顺德网站建设要多少钱百度数据中心
  • 做微网站的公司哪家好呢利搜网站排名软件
  • 手机网站设计与实现毕业设计南昌seo网站管理
  • 中山企业营销型网站制作2022年最好用的搜索引擎
  • 厦门百度seo百度seo排名优化教程
  • 设计做笔记的网站网盘搜索引擎入口
  • 最精品网站建设免费软文网站
  • 做高效能的父母网站百度经验手机版官网
  • 帮人做网站要怎么赚钱吗营销宣传图片
  • 如何做求婚网站快速整站排名seo教程
  • 郑州手机网站苏州百度搜索排名优化
  • 陕西煤业化工建设集团网站宁波seo优化定制
  • 聊城做网站推广公司杭州seo排名优化
  • 苏州保洁公司哪家最好最便宜网站排名seo培训
  • 做网站怎么打空格优化 seo
  • 做教育类网站一般流程seo基础教程视频
  • 物联网管理平台app哈尔滨seo和网络推广
  • 网站建设seo优化推广普通话海报
  • 注册独立网站有何用外包seo服务口碑好
  • 优化平台建设公司河北优化seo
  • 平台搭建与拆除seo服务外包公司
  • 永年做网站补习班
  • 5080电影电视剧大全青岛seo关键词优化排名
  • 咨询网站搭建seo搜索引擎优化价格
  • 做网站用源码公司网站搭建
  • 在线制作图片影集网站seo优化皆宣徐州百都网络不错
  • 用自建网站做外贸小红书软文案例
  • 我国网站建设现状注册网站流程和费用
  • 深圳网站建设app开发湖南网站建设营销推广
  • 三明做网站公司游戏推广合作平台