码迷,mamicode.com
首页 >  
搜索关键字:parse    ( 5240个结果
把张量计算放到GPU上进行计算
先设置环境 parser = argparse.ArgumentParser()parser.add_argument('--gpu',type=str,default='7')opt=parser.parse_args()print(opt)os.environ["CUDA_VISIBLE_DEV ...
分类:其他好文   时间:2020-07-17 13:40:24    阅读次数:103
python模块---configparser 编辑ini文件
configparser模块中提供了ConfigParser类来对ini文件处理 可以将section看成字典的key,options是value,则每一个option是嵌套的key:value 可以看做为有序的字典,orderdict ####读取 import configparser mysq ...
分类:编程语言   时间:2020-07-17 01:24:29    阅读次数:95
yb课堂之用户注册登陆模块《六》
用户注册功能接口开发 注册接口开发 MD5加密工具类封装 UserMapper.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http ...
分类:其他好文   时间:2020-07-16 21:18:17    阅读次数:62
实体类转json 和 json转实体类
1.new JSONObject().toJSONString(rootEntity) 2. JSONObject jsonObject = JSONObject.fromObject(emp);3.String s= JSONArray.fromObject(user).toString(); j ...
分类:Web程序   时间:2020-07-16 18:16:37    阅读次数:103
Jsoup获取纯文本
一: Witelist addTogs = new Witelist(); String text = Jsoup.clean(bodyHtml,addTogs);//bodyHtml是带html标签的字符串。 二: String text = Jsoup.parse(bodyHtml).text( ...
分类:Web程序   时间:2020-07-15 15:20:22    阅读次数:85
Fastjson 教程
##对象转Json字符串 Person p = new Person("费哥", 26); String jsonString = JSON.toJSONString(p); System.out.println(jsonString); ##Json字符串转对象(一) Person p = new ...
分类:Web程序   时间:2020-07-15 01:26:56    阅读次数:103
APP内跳转链接用INTENT,但是用系统浏览器,在内部还是要webview
public void clickKefu() { Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.baidu.com")); getActivity().startActivity(intent); } ...
分类:移动开发   时间:2020-07-14 18:09:16    阅读次数:94
python 爬百度贴吧
import urllib.requestimport urllib.parseurl="https://tieba.baidu.com/f"word=input("请输入要爬的贴吧")#将贴吧名称变成url码word=urllib.parse.quote(word)#完整输入贴吧链接newUrl= ...
分类:编程语言   时间:2020-07-14 00:21:35    阅读次数:56
JS數組
數組 有序的列表,裏面存儲了若干個無序的元素;是一個緊密型結構 元素被存儲在列表中,這個數據就是元素,簡稱元 從列表中獲取這個元素的方法,使用數組名[下標]就可以得到這個元素,我們把這種方式叫做下標變量 對象: 與對象的區別在於,對象是鬆散型結構,是鍵值對存儲; 儅刪除一個元素時,對象的其他值不會發 ...
分类:Web程序   时间:2020-07-13 19:58:59    阅读次数:62
内敛声明变量
int.TryParse(dto.OrderTimeout.ToString(), out int num); 等价于 int int; int.TryParse(dto.OrderTimeout.ToString(), out num); ...
分类:其他好文   时间:2020-07-13 18:13:05    阅读次数:40
5240条   上一页 1 ... 13 14 15 16 17 ... 524 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!