数字:int(整型) 必须掌握:int() #例: # a = "123" # print(type(a),a) #输出:<class 'str'> 123 # b = "456" # c = int(b) # print(type(c),c) #输出:<class 'int'> 456 # ps:type代表类型 # 例: # num = "0011" # v = int(num,base = 16) # print(v) # 输出:17 ...