Built-in functions such as help()...

# print(abs(2))
# print(abs(-2))
# print(all([1,2,'1']))
# print(any([0,'',1]))
# print(bin(3))
# #Empty, none, 0 boolean values ​​are false, the rest are true
# print( bool ( '' ))
 # name = ' hello ' 
# print(bytes(name,encoding = ' utf-8 ' ))#b ' \xe4\xbd\xa0\xe5\xa5\xbd ' 3 represents a word
# print(bytes(name,encoding = ' utf-8 ' ).decode( ' utf-8 ' ))#decoding implementation output hello
# print(bytes(name,encoding='gbk'))
# print(bytes(name,encoding = ' gbk ' ).decode( ' gbk ' ))# The root cause of garbled characters is that encryption and decryption are not a code number

# print(chr(65))
# print(dir(all))#Print all the specific methods of an object, for viewing
# print (dir (dict))
# print(divmod( 10 , 3 ))#10 represents the total number of records, 3 represents 3 records per page, mainly used for paging
#Hashable data types are immutable data types, and non-hashable data types are mutable data types
# print(hash(123))
# print(hash('123'))
# print(hash('123sdfa'))
# name='tom'
# print(hash(name))# Passing the variable name will not cause the hash of the data to be different
# print(help(all))# How to print a variable 
# print(bin( 10 ))# Decimal to binary
# print(hex( 12 ))# decimal to hexadecimal
# print(oct( 12 ))# decimal to octal
# print(isinstance(1,int))
# global name
# name='cat'
# print(globals())#Print all global variables of this machine, including cat
# print(locals())
# def test():
# print (global ())
#
# test()
p=[1,3,6,2]
print (min (p))
print(max(p))

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325052162&siteId=291194637