# encoding: utf-8 # module builtins # from (built-in) # by generator 1.147 """ Built-in functions, exceptions, and other objects. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices. """ # no imports # V…
##运算符 算数运算符: ---> 赋值运算符 >>>返回结果为值 + # 加 - # 减 * # 乘 / # 除以 ** # 幂运算 % # 取余数 // # 取商 #################### 赋值运算符: ---> 算数运算符 >>>返回结果为值 a = a + b == a += b a = a - b == a -= b a = a * b == a *= b a = a / b == a /= b a = a ** b == a **…
# encoding: utf-8 # module builtins # from (built-in) # by generator 1.147 """ Built-in functions, exceptions, and other objects. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices. """ # no imports # V…
# encoding: utf-8 # module builtins # from (built-in) # by generator 1.147 """ Built-in functions, exceptions, and other objects. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices. """ # no imports # V…
# encoding: utf-8 # module builtins # from (built-in) # by generator 1.147 """ Built-in functions, exceptions, and other objects. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices. """ # no imports # V…
# encoding: utf-8 # module builtins # from (built-in) # by generator 1.147 """ Built-in functions, exceptions, and other objects. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices. """ # no imports # V…
# encoding: utf-8 # module builtins # from (built-in) # by generator 1.147 """ Built-in functions, exceptions, and other objects. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices. """ # no imports # V…
# encoding: utf-8 # module builtins # from (built-in) # by generator 1.147 """ Built-in functions, exceptions, and other objects. Noteworthy: None is the `nil' object; Ellipsis represents `...' in slices. """ # no imports # V…
1 数字: int 2 3 int : 转换,将字符串转化成数字 4 num1 = '123' 5 num2 = int (a) 6 numadd = num2 +1000 7 print(num2) 8 9 num3 = 'a' 10 v = int (num3 , base = 16 ) # base==n ,base 表示进制,base = 16 就是16进制 11 print(v) 12 13 14 bit_length : 至少用几个二进制位表示 15 age = '18' 16 a…
Python开发(二):列表.字典.元组与文件处理 一:列表二:元组三:字典四:文件处理 一:列表   为什么需要列表 可以通过列表可以对数据实现最方便的存储.修改等操作.字符串是不能修改的,所以无法对数据进行修改.而且可以通过列表进行方便的取值 #  列表的操作 创建列表 >>> name = ["XiaoMing","XiaoHua","XiaoQiang"] >>> name ['XiaoMing', '…