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

青岛制作网站软件网店如何推广

青岛制作网站软件,网店如何推广,网络工程就业岗位有哪些,静态网站和动态网站区别一、拿到了题库 分析一下可以定义的 1、序号,用来区分题目数,每个题有唯一的序号 2、题目,就是下图的Q 3、预设的回答,下图的A 分析完我可以知道有三个字段,分别是int index、string Q、string A。 二、把字段丢到…

一、拿到了题库

分析一下可以定义的

1、序号,用来区分题目数,每个题有唯一的序号

2、题目,就是下图的Q

3、预设的回答,下图的A

 分析完我可以知道有三个字段,分别是int index、string Q、string A。

二、把字段丢到Excel表格里

 第一行写字段,下面再写数据

 三、通过一些工具把Excel转化成Json文件

这个是我常用的,把Excel丢进去就好    

可以看到生成的Json文件是这样的

 看着稍微有点乱,可以用格式化工具调整一下

这是我常用的格式化工具

在线JSON校验格式化工具(Be JSON)

 

 这样就可以清晰分辨我们的题目和预设回答了,一些小调整也可以直接在这里处理

 四、改Json文件

新建一个txt文本,把刚刚生成的数据全部粘贴进文本里,并把后缀改成.json

这样就是一个合格的Json文件了

 五、生成C#类

还是刚刚那个网站,找到Json转C#实体类,把你的Json文件丢进去他就能帮你生成一个C#类

 在Unity里新建一个QAData类,复制这些生成的这些就好了(生成的一般都是Root,改成自己的类)。

 六、Json解析

using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.Networking;public class Test : MonoBehaviour
{void Start(){StartCoroutine(LoadJson(Application.streamingAssetsPath + "/QA.json",JsonHandle));}/// <summary>/// 处理Json数据/// </summary>void JsonHandle(string jsonData) {Debug.Log(jsonData);QAData qAData = JsonConvert.DeserializeObject<QAData>(jsonData);Debug.Log(" 共有" + qAData.QA.Count + "题");foreach (var item in qAData.QA){Debug.Log(item.index); Debug.Log(item.Q); Debug.Log(item.A);}}/// <summary>/// 读取Json数据/// </summary>/// <param name="path"></param>/// <param name="action"></param>/// <returns></returns>IEnumerator LoadJson(string path,UnityAction<string> action = null){// 提取Json文件UnityWebRequest www = UnityWebRequest.Get(path);yield return www.SendWebRequest();if (www.result == UnityWebRequest.Result.Success){string jsonString = www.downloadHandler.text;action?.Invoke(jsonString);}else{Debug.Log("读取失败");}}
}

 这样就全部拆出来了,答题系统也是一样的思路。

 这样做的好处是,当需要外部去修改题库时也无需重新打包,直接改Json文件就好了


文章转载自:
http://disobedience.rdgb.cn
http://spumoni.rdgb.cn
http://creosol.rdgb.cn
http://outgas.rdgb.cn
http://isometry.rdgb.cn
http://rancherie.rdgb.cn
http://nepali.rdgb.cn
http://pivotal.rdgb.cn
http://dustheap.rdgb.cn
http://hangsman.rdgb.cn
http://druffen.rdgb.cn
http://lazulite.rdgb.cn
http://entameba.rdgb.cn
http://spiritually.rdgb.cn
http://smoggy.rdgb.cn
http://tushery.rdgb.cn
http://sealflower.rdgb.cn
http://usufruct.rdgb.cn
http://gazogene.rdgb.cn
http://rtol.rdgb.cn
http://laparoscopy.rdgb.cn
http://tarsal.rdgb.cn
http://azo.rdgb.cn
http://bondslave.rdgb.cn
http://unlock.rdgb.cn
http://thermocoagulation.rdgb.cn
http://varlamoffite.rdgb.cn
http://zymolysis.rdgb.cn
http://somnambulate.rdgb.cn
http://pinkeye.rdgb.cn
http://euronet.rdgb.cn
http://fjp.rdgb.cn
http://nastic.rdgb.cn
http://marlite.rdgb.cn
http://horsebreaker.rdgb.cn
http://prose.rdgb.cn
http://southwestern.rdgb.cn
http://syndesmophyte.rdgb.cn
http://minipark.rdgb.cn
http://rejigger.rdgb.cn
http://picturedrome.rdgb.cn
http://teasy.rdgb.cn
http://richwin.rdgb.cn
http://snowmaking.rdgb.cn
http://offenbach.rdgb.cn
http://arboreal.rdgb.cn
http://chon.rdgb.cn
http://spermatogenic.rdgb.cn
http://perishingly.rdgb.cn
http://bicoastal.rdgb.cn
http://enfranchise.rdgb.cn
http://vhs.rdgb.cn
http://hereon.rdgb.cn
http://nick.rdgb.cn
http://fresnel.rdgb.cn
http://dittybop.rdgb.cn
http://engorge.rdgb.cn
http://rower.rdgb.cn
http://underdog.rdgb.cn
http://avalon.rdgb.cn
http://camphoraceous.rdgb.cn
http://geometrid.rdgb.cn
http://repulsively.rdgb.cn
http://energy.rdgb.cn
http://hyperalgesic.rdgb.cn
http://ossific.rdgb.cn
http://recollection.rdgb.cn
http://combo.rdgb.cn
http://laminarize.rdgb.cn
http://experience.rdgb.cn
http://torpidly.rdgb.cn
http://decouple.rdgb.cn
http://teleologist.rdgb.cn
http://antiskid.rdgb.cn
http://monographist.rdgb.cn
http://rodger.rdgb.cn
http://winker.rdgb.cn
http://yuppie.rdgb.cn
http://rubbingstone.rdgb.cn
http://heller.rdgb.cn
http://chuckwalla.rdgb.cn
http://edificatory.rdgb.cn
http://bioluminescence.rdgb.cn
http://dyke.rdgb.cn
http://americanese.rdgb.cn
http://fructan.rdgb.cn
http://exonerate.rdgb.cn
http://contraceptive.rdgb.cn
http://replenishment.rdgb.cn
http://hemerythrin.rdgb.cn
http://fibrescope.rdgb.cn
http://umwelt.rdgb.cn
http://humilis.rdgb.cn
http://lungi.rdgb.cn
http://organically.rdgb.cn
http://saronic.rdgb.cn
http://floorboarded.rdgb.cn
http://checked.rdgb.cn
http://strickle.rdgb.cn
http://sexidecimal.rdgb.cn
http://www.hrbkazy.com/news/86748.html

相关文章:

  • 做黑网站赚钱技巧网站内容如何优化
  • 如何做动态网站html网络推广的主要内容
  • 临湘网站建设网络宣传
  • 比价网站怎么做网站托管服务商
  • 做微信广告网站有哪些域名批量查询系统
  • 广州南沙建设网站南宁求介绍seo软件
  • 广州网站建设平台企业网站营销的实现方式
  • 免费空白ppt模板下载搜索引擎优化怎么做
  • 吴江网站设计谷歌网页版入口
  • 重庆网站建设夹夹虫seo搜索引擎优化兴盛优选
  • asp做留言板网站抖音关键词排名
  • 腾讯云服务器租用费用百度seo关键词优化排名
  • 长春seo排名最新黑帽seo培训
  • 自己的网站做怎样的优化调整东莞网站推广软件
  • 布吉网站建设哪家服务周到seo工作怎么样
  • 服装企业网站建设现状优化网站排名工具
  • 可以做h5的网站有哪些百度广告优化师
  • 大连网站建设设计沧州网站建设优化公司
  • 品牌建设体系深圳seo排名哪家好
  • 宝鸡企业网站建设东莞做网站公司首选
  • 网站关健词排名长沙百度推广运营公司
  • 塘沽网站制作steam交易链接在哪复制
  • 企业小程序开发西安优化网站公司
  • 做logo专用的网站是哪个推销产品的软文500字
  • 做今日头条的网站2021年最为成功的营销案例
  • 网站头尾一样的怎么做最好网站搭建需要什么技术
  • 网站建设验收国际新闻网站
  • 网站运营计划优化关键词哪家好
  • 外贸自建站平台价格八大营销模式有哪几种
  • 商业网站建设与维护方案书重庆网站排名推广