python2程序移植python3的一些注意事项

  1 queue:

  python2: import Queue

  python3: import queue

  2 queue size:  

  python2: cache = Queue.Queue(maxsize=5)

  python3: cache = queue.Queue(maxsize=5)

  

猜你喜欢

转载自www.cnblogs.com/dylancao/p/9392301.html
今日推荐