parameters: (mode)
docstring: python版本发生变化时，清理之前的python编译结果
      应该仅在 pyhon 版本发生变化时被调用
docstring_summary: python版本发生变化时，清理之前的python编译结果
      应该仅在 pyhon 版本发生变化时被调用
docstring_tokens: python版本发生变化时，清理之前的python编译结果 应该仅在 pyhon 版本发生变化时被调用
function: def clear_with_python_changed(mode):
      """
      python版本发生变化时，清理之前的python编译结果
      应该仅在 pyhon 版本发生变化时被调用
      """
      current_plat = sys.platform
      current_bits = 64 if sys.maxsize > 2**32 else 32
      if current_plat == 'win32' and current_bits == 64:
          build_pywrap_dir = 'build\\{mode}\\windows\\x64\\.objs\\windows\\x64\\{mode}\\hikyuu_pywrap'.format(
              mode=mode)
      elif current_plat == 'win32' and current_bits == 32:
          build_pywrap_dir = 'build\\{mode}\\windows\\x86\\.objs\\windows\\x86\\{mode}\\hikyuu_pywrap'.format(
              mode=mode)
      elif current_plat == 'linux' and current_bits == 64:
          build_pywrap_dir = 'build/{mode}/linux/x86_64/.objs/linux/x86_64/{mode}/hikyuu_pywrap'.format(
              mode=mode)
      elif current_plat == 'linux' and current_bits == 32:
          build_pywrap_dir = 'build/{mode}/linux/i386/.objs/linux/i386/{mode}/hikyuu_pywrap'.format(
              mode=mode)
      elif current_plat == "darwin" and current_bits == 64:
          build_pywrap_dir = 'build/{mode}/macosx/x86_64/.objs/macosx/x86_64/{mode}/hikyuu_pywrap'.format(
              mode=mode)
      elif current_plat == "darwin" and current_bits == 32:
          build_pywrap_dir = 'build/{mode}/macosx/i386/.objs/macosx/i386/{mode}/hikyuu_pywrap'.format(
              mode=mode)
      else:
          print("************不支持的平台**************")
          exit(0)
      if os.path.lexists(build_pywrap_dir):
          shutil.rmtree(build_pywrap_dir)
      current_boost_root, _ = get_boost_envrionment()
      if os.path.lexists('{}/bin.v2/libs/python'.format(current_boost_root)):
          shutil.rmtree('{}/bin.v2/libs/python'.format(current_boost_root))
function_tokens: def clear_with_python_changed ( mode ) : current_plat = sys . platform current_bits = 64 if sys . maxsize > 2 ** 32 else 32 if current_plat == 'win32' and current_bits == 64 : build_pywrap_dir = 'build\\{mode}\\windows\\x64\\.objs\\windows\\x64\\{mode}\\hikyuu_pywrap' . format ( mode = mode ) elif current_plat == 'win32' and current_bits == 32 : build_pywrap_dir = 'build\\{mode}\\windows\\x86\\.objs\\windows\\x86\\{mode}\\hikyuu_pywrap' . format ( mode = mode ) elif current_plat == 'linux' and current_bits == 64 : build_pywrap_dir = 'build/{mode}/linux/x86_64/.objs/linux/x86_64/{mode}/hikyuu_pywrap' . format ( mode = mode ) elif current_plat == 'linux' and current_bits == 32 : build_pywrap_dir = 'build/{mode}/linux/i386/.objs/linux/i386/{mode}/hikyuu_pywrap' . format ( mode = mode ) elif current_plat == "darwin" and current_bits == 64 : build_pywrap_dir = 'build/{mode}/macosx/x86_64/.objs/macosx/x86_64/{mode}/hikyuu_pywrap' . format ( mode = mode ) elif current_plat == "darwin" and current_bits == 32 : build_pywrap_dir = 'build/{mode}/macosx/i386/.objs/macosx/i386/{mode}/hikyuu_pywrap' . format ( mode = mode ) else : print ( "************不支持的平台**************") exit ( 0 ) if os . path . lexists ( build_pywrap_dir ) : shutil . rmtree ( build_pywrap_dir ) current_boost_root , _ = get_boost_envrionment ( ) if os . path . lexists ( '{}/bin.v2/libs/python' . format ( current_boost_root ) ) : shutil . rmtree ( '{}/bin.v2/libs/python' . format ( current_boost_root ) )