old_contents: #!/usr/bin/env python3
  # coding: utf-8
  
  from wxpy import *
  
  '''
  使用 cache 来缓存登陆信息，同时使用控制台登陆
  '''
  bot = Bot('bot.pkl', console_qr=False)
  
  
  '''
  开启 PUID 用于后续的控制
  '''
  bot.enable_puid('wxpy_puid.pkl')
  
  friends = bot.friends()
  groups = bot.groups()
  
  with  open('data', 'w',encoding='UTF-8') as output:
      output.write("-----Friends-------\n")
      for i in friends:
          output.write(i.nick_name + " ---> " + i.puid + "\n")
          pass
      
      output.write("-----Groups-------\n")
      for i in groups:
          output.write(i.name + " ---> " + i.puid + "\n")
          pass
  
  
  
  
  
  
new_contents: #!/usr/bin/env python3
  # coding: utf-8
  
  from wxpy import *
  
  '''
  使用 cache 来缓存登陆信息，同时使用控制台登陆
  '''
  bot = Bot('bot.pkl', console_qr=False)
  
  
  '''
  开启 PUID 用于后续的控制
  '''
  bot.enable_puid('wxpy_puid.pkl')
  
  friends = bot.friends()
  groups = bot.groups()
  
  with  open('data', 'w',encoding='UTF-8') as output:
      output.write("-----Friends-------\n")
      for i in friends:
          output.write(i.nick_name + " ---> " + i.puid + "\n")
      
      output.write("-----Groups-------\n")
      for i in groups:
          output.write(i.name + " ---> " + i.puid + "\n")
  
  
  
  
  
  
subject: remove 2 unused pass statements