您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. Python基本类型的连接组合和互相转换方式(13种)

  2. 本篇总结了一下字符串,列表,字典,元组的连接组合使用和类型的互相转换小例子,尤其列表中的extend()方法和字典中的 update方法非常的常用。 1.连接两个字符串 a = "hello " b = "world" a += b print(a) # hello world 2.字典的连接 dict1 = {1: "a", 2: "b"} dict2 = {3: "c", 4: "d"} dict1.update(dict2) print(dict1) # {1: 'a', 2: 'b
  3. 所属分类:其它

    • 发布日期:2020-12-23
    • 文件大小:81920
    • 提供者:weixin_38680664