码迷,mamicode.com
首页 >  
搜索关键字:python function    ( 188437个结果)
元类、实现ORM
阅读目录: 元类 元类实现ORM 元类 1. 类也是对象 在大多数编程语言中,类就是一组用来描述如何生成一个对象的代码段。在Python中这一点仍然成立: >>> class ObjectCreator(object): … pass … >>> my_object = ObjectCreator( ...
分类:其他好文   时间:2021-03-08 13:48:08    阅读次数:0
轮播图
var index=1; left.onclick=function () { index++ if (index>3) { index=0 } one.style.left=-index*800+"px" } right.onclick=function () { index-- if (inde ...
分类:其他好文   时间:2021-03-08 13:34:42    阅读次数:0
Core Python | 2 - Core Python: Getting Started | 2.6 - Objects and Types | 2.6.4 - Python's Type System
Programming languages can be distinguished by several characteristics, but one of the most important is the nature of their type system. Python could ...
分类:编程语言   时间:2021-03-08 13:34:24    阅读次数:0
Get/post
export function getreportlook (parameter) { return request({ url: api.reportlook, method: 'get', params: parameter }) } // 朋友圈详情 export function getse ...
分类:其他好文   时间:2021-03-08 13:32:04    阅读次数:0
python——提取pdf中的指定页
from PyPDF2 import PdfFileWriter, PdfFileReader # 开始页 start_page = 0 # 截止页 end_page = 5 output = PdfFileWriter() pdf_file = PdfFileReader(open("3.pdf" ...
分类:编程语言   时间:2021-03-08 13:30:17    阅读次数:0
翻译:《实用的Python编程》04_00_Overview
目录 | 上一节 (3 程序组织) | 下一节 (5 Python对象的内部工作原理) 4. 类和对象 到目前为止,我们的程序仅使用了内置的 Python 数据类型。本节,我们介绍类(class)和对象(object)的概念。你将学习 class 语句,该语句允许你创建新的对象。我们还将介绍继承(i ...
分类:编程语言   时间:2021-03-08 13:26:35    阅读次数:0
javascript:||和&&
||:找到真值则返回 &&:找到假值则返回 一般用于设置默认值,例如: function func(a){ a = a || 1; //如果a传值了则设置为a 如果没传值则设置为1 } ...
分类:编程语言   时间:2021-03-08 13:25:17    阅读次数:0
用keras_bert实现多输出、参数共享模型
背景 在nlp领域,预训练模型bert可谓是红得发紫。 但现在能搜到的大多数都是pytorch写的框架,而且大多都是单输出模型。 所以,本文以 有相互关系的多层标签分类 为背景,用keras设计了多输出、参数共享的模型。 keras_bert基础应用 def batch_iter(data_path ...
分类:其他好文   时间:2021-03-08 13:18:36    阅读次数:0
PyTorch 1.8发布,支持AMD GPU和Python函数转换
近日,PyTorch 团队发布了 PyTorch 1.8 版本。该版本整合了自去年 10 月 1.7 版本发布以来的 3000 多次 commit,提供了编译、代码优化、科学计算前端 API 方面的主要更新和新特性。值得一提的是,该版本新增了对 AMD ROCm 的支持。 此外,PyTorch 1. ...
分类:编程语言   时间:2021-03-08 13:14:52    阅读次数:0
百度地图根据经纬度获取实际地理位置Api接口
public function lonlat_info(){ $url = 'http://api.map.baidu.com/reverse_geocoding/v3/?ak=**********&output=json&coordtype=bd09ll&location=33.351943643 ...
分类:Windows程序   时间:2021-03-08 13:14:11    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!