love小树林 2014-09-23 13:30 采纳率: 0%
浏览 2333

Python3.4用cx_Freeze打包的时候出问题了,不知道怎么解决啊

CSDN移动问答

上面是EXE运行时的状况;
下面试代码:
#! /usr/bin/python

-*- coding: utf-8 -*-

import urllib.request,urllib.error
try:
resp=urllib.request.urlopen('http://su.bdimg.com/static/superplus/img/logo_white_ee663702.png')
html=resp.read()
spath="e:/1.png"
f=open(spath,"wb") # Opens file for writing.Creates this file doesn't exist.
f.write(html)
f.close()

#print(html)

except urllib.error.HTTPError as err:
print(err.code )
except urllib.error.URLError as err:
print(err.code )

当我使用cx_freeze打包一些简单的输入输出时完全可以运行

  • 写回答

1条回答

  • love小树林 2014-09-28 12:27
    关注
    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料