abs() Math.abs()
dict() 这个js中没有对应,不过js中可以用{}创建,没有py强大
min() Math.min()
setattr() js中没有
all() 没有
dir() 没有
hex() x.toString(16),变相实现也不难
next() 没有,应该说概念不同,for of 可以对付iterable objects
slice()
概念不同
any() 没
divmod 没
id 没
sorted 没
ascii 没
enumerate 没有直接方法
oct 可以变相实现
staticmethod static
bin 可以变相实现
eval eval
int parseInt
open node.js有对应的方法
str JSON.stringify差不多吧
bool Boolean
exec 没
isinstance instanceof 都会考虑继承 另外,String() instanceof Object为false, new String() instanceof Object为true
crd codePointAt,charCodeAt不好使,//http://es6.ruanyifeng.com/#docs/string#codePointAt
sum 没
bytearray 没
filter 数组有filter
tuple js没有这东西
callable
没
issubclass(B,A) B.prototype instanceof A
iter 没
super super
bytes
没
float parseFloat 功能不一样
format 没
len js中有length属性或者size属性
property 没
type typeof 意义不一样
chr String.fromCodePoint()
frozenset Object.freeze 作用不完全一样
list Array.from
range 没有原生的
vars Object.entries 意义不一样
classmethod
没 要这个干什么
getattr 没 要这个干什么
locals 没
repr
没
zip 没 不过lodash库里面有
unzip 没
compile 没
map array有这个方法
complex
原生没
reversed
没
hasattr 没,不这么用
__import__
import
max Math.max
round Math.round
delattr delete
set new Set
memoryview
没
写了这么多,还是js屌啊