09 2022 档案

摘要:1. 字符串转换成字典 import json user_info= '{"name" : "john", "gender" : "male", "age": 28}' user_dict = json.loads(user_info) user_dict # {u'gender': u'male' 阅读全文
posted @ 2022-09-25 16:06 写代码的小哥哥 阅读(18) 评论(0) 推荐(0) 编辑
摘要:1. conda 虚拟环境安装 查看所有虚拟环境 conda env list删除指定虚拟环境 conda env remove -name yor_env_nam 2. 安装pytorch + cuda pip3 install torch torchvision torchaudio --ext 阅读全文
posted @ 2022-09-25 00:20 写代码的小哥哥 阅读(174) 评论(0) 推荐(0) 编辑
摘要:1.take take(2,1) 取每行的第2个元素 take(2,0) 表示取第几行 阅读全文
posted @ 2022-09-17 11:54 写代码的小哥哥 阅读(20) 评论(0) 推荐(0) 编辑
摘要:1.不等于0的地方换成1 2.图的构建 1.构建单位矩阵 2.自定义矩阵 3 随机数 1 生成随机的5个数字 2 取数字的列为1 4 求和 np.sum axis以行求和 5 将矩阵拼接 1 拼接矩阵按照一列一列拼接 hstack 2 按照一列一列拼接为数组: 1 2 3 拼接矩阵按照一行一行拼接 阅读全文
posted @ 2022-09-12 22:20 写代码的小哥哥 阅读(573) 评论(0) 推荐(0) 编辑
摘要:1 阅读全文
posted @ 2022-09-08 23:36 写代码的小哥哥 阅读(7) 评论(0) 推荐(0) 编辑
摘要:1.get @RequestMapping(value = "/user",method = RequestMethod.GET) public String user(){ System.out.println("查询所有用户信息"); return "success"; } @RequestMa 阅读全文
posted @ 2022-09-07 23:54 写代码的小哥哥 阅读(25) 评论(0) 推荐(0) 编辑
摘要:1. internalResourceView 转发到另一个页面 @RequestMapping("/internal") public String internal(){ return "forward:/test/test1"; } 2 redirectView 视图重定向 @RequestM 阅读全文
posted @ 2022-09-07 23:41 写代码的小哥哥 阅读(18) 评论(0) 推荐(0) 编辑
摘要:1. servletApi @GetMapping("testServletApi") public String testServletApi(HttpServletRequest request){ request.setAttribute("price","100"); return "suc 阅读全文
posted @ 2022-09-06 22:48 写代码的小哥哥 阅读(24) 评论(0) 推荐(0) 编辑
摘要:1.servlet @GetMapping("/params") public String test5(HttpServletRequest request){ String username = request.getParameter("username"); String password 阅读全文
posted @ 2022-09-04 23:43 写代码的小哥哥 阅读(79) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示