cnaol 最近的时间轴更新
cnaol

cnaol

V2EX 第 266149 号会员,加入于 2017-11-10 05:21:22 +08:00
求问 Go 大佬 关于 uint32
2019  •  cnaol  •  2019-06-25 04:36:27 AM  •  最后回复来自 hbl
7
[ Python ]求教大佬关于 locals()动态生成变量
Python  •  cnaol  •  2018-01-08 12:01:43 PM  •  最后回复来自 xpresslink
12
求教大佬关于 locals()动态生成变量
问与答  •  cnaol  •  2018-01-06 19:44:07 PM  •  最后回复来自 zeq
1
学 Python 中 有个问题困扰一天了 关于编码的 使用的 python3
问与答  •  cnaol  •  2017-12-11 12:38:53 PM  •  最后回复来自 ysc3839
3
cnaol 最近回复了
2018-01-07 22:55:57 +08:00
回复了 CSM 创建的主题 Python 让你在线看视频也能达到多线程下载的速度
@CSM
> PS F:\myproject> pip install --user video_funnel
Collecting video_funnel
Using cached video_funnel-0.0.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\UrAir\AppData\Local\Temp\pip-build-v519sou0\video-funnel\setup.py", line 29, in <module>
'vf = video_funnel.__main__:main'
File "c:\users\urair\appdata\local\programs\python\python36\lib\distutils\core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\dist.py", line 315, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\dist.py", line 361, in fetch_build_eggs
replace_conflicting=True,
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 850, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 1122, in best_match
return self.obtain(req, installer)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\pkg_resources\__init__.py", line 1134, in obtain
return installer(requirement)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\dist.py", line 429, in fetch_build_egg
return cmd.easy_install(req)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\command\easy_install.py", line 653, in easy_install
not self.always_copy, self.local_index
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\package_index.py", line 636, in fetch_distribution
dist = find(requirement)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\package_index.py", line 617, in find
dist.download_location = self.download(dist.location, tmpdir)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\package_index.py", line 566, in download
found = self._download_url(scheme.group(1), spec, tmpdir)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\package_index.py", line 805, in _download_url
return self._attempt_download(url, filename)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\package_index.py", line 811, in _attempt_download
headers = self._download_to(url, filename)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\package_index.py", line 710, in _download_to
fp = self.open_url(strip_fragment(url))
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\package_index.py", line 747, in open_url
return open_with_auth(url, self.opener)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\package_index.py", line 948, in _socket_timeout
return func(*args, **kwargs)
File "c:\users\urair\appdata\local\programs\python\python36\lib\site-packages\setuptools\package_index.py", line 1067, in open_with_auth
fp = opener(request)
File "c:\users\urair\appdata\local\programs\python\python36\lib\urllib\request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "c:\users\urair\appdata\local\programs\python\python36\lib\urllib\request.py", line 526, in open
response = self._open(req, data)
File "c:\users\urair\appdata\local\programs\python\python36\lib\urllib\request.py", line 544, in _open
'_open', req)
File "c:\users\urair\appdata\local\programs\python\python36\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "c:\users\urair\appdata\local\programs\python\python36\lib\urllib\request.py", line 1361, in https_open
context=self._context, check_hostname=self._check_hostname)
File "c:\users\urair\appdata\local\programs\python\python36\lib\urllib\request.py", line 1321, in do_open
r = h.getresponse()
File "c:\users\urair\appdata\local\programs\python\python36\lib\http\client.py", line 1331, in getresponse
response.begin()
File "c:\users\urair\appdata\local\programs\python\python36\lib\http\client.py", line 297, in begin
version, status, reason = self._read_status()
File "c:\users\urair\appdata\local\programs\python\python36\lib\http\client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "c:\users\urair\appdata\local\programs\python\python36\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "c:\users\urair\appdata\local\programs\python\python36\lib\ssl.py", line 1009, in recv_into
return self.read(nbytes, buffer)
File "c:\users\urair\appdata\local\programs\python\python36\lib\ssl.py", line 871, in read
return self._sslobj.read(len, buffer)
File "c:\users\urair\appdata\local\programs\python\python36\lib\ssl.py", line 631, in read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\UrAir\AppData\Local\Temp\pip-build-v519sou0\video-funnel\
2018-01-07 21:56:07 +08:00
回复了 CSM 创建的主题 Python 让你在线看视频也能达到多线程下载的速度
Command "python setup.py egg_info" failed with error code 1 in C:\Users\UrAir\AppData\Local\Temp\pip-build-4koh515g\video-funnel\

怎么破
2018-01-06 21:05:08 +08:00
回复了 cnaol 创建的主题 Python [ Python ]求教大佬关于 locals()动态生成变量
@ballshapesdsd 我试过 globals 确实可以跑出来 但是这样是全局的变量 容易造成污染 谢谢你的回答
2017-12-15 17:23:56 +08:00
回复了 omph 创建的主题 Python 这个正则该怎么写?
> import re
s1 = '1、供应商名称:肇 庆市锐装有限公司 2、法人 : 郑均 3、地址: 肇庆市梅庵路 '
s2 = '供应商名称:肇 庆市锐装有限公司 法人 : 郑均 地址: 肇庆市梅庵路 '

recom = re.compile(r'(?<=供应商名称:)(?P<company>[^ ]* ?[^ ]*).*(?<=法人 : )(?P<owner>[^ ]*).*(?<=地址: )(?P<addr>[^ ]*).*')
print(recom.findall(s1))
print(recom.findall(s2))

##############
[('肇 庆市锐装有限公司', '郑均', '肇庆市梅庵路')]
[('肇 庆市锐装有限公司', '郑均', '肇庆市梅庵路')]
2017-12-11 02:04:49 +08:00
回复了 cnaol 创建的主题 问与答 学 Python 中 有个问题困扰一天了 关于编码的 使用的 python3
@ysc3839
万分感谢
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1293 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 23:25 · PVG 07:25 · LAX 15:25 · JFK 18:25
Developed with CodeLauncher
♥ Do have faith in what you're doing.