码迷,mamicode.com
首页 >  
搜索关键字:__builtins__    ( 126个结果
10_常用标准库
常用标准库 标准库 说明 builtins 内建函数默认加载 math 数学库 random 生成随机数 time 时间 datetime 日期和时间 calendar 日历 hashlib 加密算法 copy 拷贝 functools 常用的工具 os 操作系统接口 re 字符串正则匹配 sys ...
分类:其他好文   时间:2020-07-20 15:22:46    阅读次数:81
判断一个字符串是否为数字、字母
fastnumbers参考文档: https://fastnumbers.readthedocs.io, 除了提供fast_float,fast_real等函数来加速builtins API外,此包还提供了isreal, isfloat, isint, isintlike等API,方便调用判断输入是 ...
分类:其他好文   时间:2020-07-10 14:51:03    阅读次数:57
Do not access Object.prototype method‘hasOwnProperty’ from target object no-prototype-builtins
写项目时发现如下错误: Do not access Object.prototype method ‘hasOwnProperty’ from target object no-prototype-builtins 发现是新版本的ESLint使用了禁止直接调用 Object.prototypes 的 ...
分类:数据库   时间:2020-07-08 18:18:30    阅读次数:87
Python基础及语法(十一)
查看属性 dir() __dir__ 返回对象或类的所有成员名称列表 print(dir()) # ['__annotations__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', ' ...
分类:编程语言   时间:2020-07-03 17:30:23    阅读次数:57
cs231n Assignment1相关代码
1.KNN #knn_nearest_neighbor.py from builtins import range from builtins import object import numpy as np from past.builtins import xrange class KNeare ...
分类:其他好文   时间:2020-06-14 15:10:07    阅读次数:45
多线程--vthread
vthread中包含两个类: vthread.vthread.pool vthread.vthread.thread 其中class pool的原型如下: class pool(builtins.object) pool(pool_num=None, gqueue=0, join=False, lo ...
分类:编程语言   时间:2020-03-26 20:04:06    阅读次数:99
dir()和vars()的区别就是
恢复内容开始 dir()只打印属性(属性,属性......) 而vars()则打印属性与属性的值(属性:属性值......) >> a='aaaaaaaaaaaaa' >> class b: >> c = 'cccc' >> dir() >>['__builtins__', '__doc__', ' ...
分类:其他好文   时间:2020-02-26 20:32:59    阅读次数:57
Python3---内建函数---dict()
前言 该文章描述了dict()的使用 2020-01-16 天象独行 0X01;查看函数dict()用法 #!/uer/bin/env python #coding:utf-8 help(dict) Help on class dict in module builtins: class dict( ...
分类:编程语言   时间:2020-01-17 00:10:10    阅读次数:77
Python3---内建函数---zip()
前言 该文章描述了函数zip()的使用 2020-01-16 天象独行 0X01;查看zip()使用方法 #!/uer/bin/env python #coding:utf-8 help(zip) Help on class zip in module builtins: class zip(obj ...
分类:编程语言   时间:2020-01-16 23:44:57    阅读次数:68
Do not access Object.prototype method ‘hasOwnProperty’ from target object no-prototype-builtins
Do not access Object.prototype method ‘hasOwnProperty’ from target object no-prototype-builtins 2020年01月08日 分类:JavaScript/React/前端设计 评论(0) 阅读(75) 今天在升 ...
分类:数据库   时间:2020-01-16 18:50:25    阅读次数:106
126条   1 2 3 4 ... 13 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!