• 作为函数的参数和返回值

  • 格式化字符串

    "%d %s" % (10, "abc")
    
  • 让列表不可以被修改. 包含数据安全 把列表转化为元组后, 可以包含数据安全,防止被修改

  • 作用记录使用

Copyright © 李振超 2018 all right reserved,powered by Gitbook
该文件最后修订时间: 2018-02-25 07:12:09

results matching ""

    No results matching ""