ICode9

精准搜索请尝试: 精确搜索
  • Python 的那些妙事2022-06-22 17:34:40

    python 动态创建类 type('Hello', (object,), dict()) set 集合 & 交集 | 并集 ^ 补集 - 差集 built-in 函数 breakpoint() 相当于pdb断点 divmod() divmod(4,2) # (2,0) divmod(x,y) 可代替 (x//y, x%y) iter() 迭代器妙用 itr = iter('abcd') if 'c' in itr: print

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有