开发者

Python编程避免代码陷阱

0
  • Python编程新手必知的十个避免代码陷阱秘诀

    目录1. 不要修改迭代中的列表2. 注意默认参数的陷阱3. 小心全局变量4. 不要忘记关闭文件5. 小心可变默认参数6. 使用is来比较对象身份7. 避免使用*导入8. 避免使用eval()9. 使用join()连接字符串10. 学会使用列表推导[详细]

    2024-01-13 09:16 分类:开发
  • Forking with a listening socket

    I\'d like to make sure about the correctness of the way I try to use accept() on a socket. I know that in Linux it\'s safe to listen() on a socket, fork() N children and then recv() the packets in al[详细]

    2022-12-28 17:48 分类:问答