码迷,mamicode.com
首页 > 其他好文 > 详细

抽象化指令

时间:2018-05-03 17:20:57      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:col   decode   none   eval   enc   爱因斯坦   any   指令   byte   

诶别缩
print(abs(-1))

哦
print(all((1,2,‘‘)))

诶你
print(any([0,1,‘‘]))

拼
print(bin(125))

不吗
print(bool(None))

白痴(.踢开)
print(bytes(‘我草‘,encoding=‘utf-8‘).decode(‘utf-8‘))

查
print(chr(45))

地儿
print(dir(dict))

第五没得
print(divmod(10,3))

一窝
eval(‘[1+2*3]‘)

嘻哈
print(hash(‘1zxd‘))

合拍
help(dir)

嘿X
print(hex(10))

哦快T了
print(oct(10))

你是爱因斯坦
print(isinstance(‘abc‘,int))

克罗泊
print(globals())

楼口
print(locals())

买个仨
print(max(a))

抿
print(min(a))

 

抽象化指令

标签:col   decode   none   eval   enc   爱因斯坦   any   指令   byte   

原文地址:https://www.cnblogs.com/shengbei/p/8986331.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!