首页   注册   登录
 cbiqih 最近的时间轴更新
cbiqih

cbiqih

V2EX 第 69454 号会员,加入于 2014-07-31 12:42:26 +08:00
bootcamp 改名成"启动转换助理"
macOS  •  cbiqih  •  2017-12-10 20:04:50 PM  •  最后回复来自 codeeer
7
cbiqih 最近回复了
帮楼主左下格式化
Traceback (most recent call last):
File "/Users/admin/Developer/dist/launcher.app/Contents/Resources/boot.py", line 103,
in <module> _run()
File "/Users/admin/Developer/dist/launcher.app/Contents/Resources/boot.py", line 82,
in _run exec(compile(source, path, 'exec'), globals(), globals())
File "/Users/admin/Developer/dist/launcher.app/Contents/Resources/launcher.py", line 21,
in <module> from app.main import begin
File "<frozen importlib._bootstrap="">", line 971,
in _find_and_load
File "<frozen importlib._bootstrap="">", line 955,
in _find_and_load_unlocked
File "<frozen importlib._bootstrap="">", line 656,
in _load_unlocked File "<frozen importlib._bootstrap="">", line 626,
in _load_backward_compatible File "app/main.pyc", line 16,
in <module> File "<frozen importlib._bootstrap="">", line 971,
in _find_and_load File "<frozen importlib._bootstrap="">", line 955,
in _find_and_load_unlocked File "<frozen importlib._bootstrap="">", line 656,
in _load_unlocked File "<frozen importlib._bootstrap="">", line 626,
in _load_backward_compatible File "app/defs/init.pyc", line 1,
in <module> File "<frozen importlib._bootstrap="">", line 971,
in _find_and_load File "<frozen importlib._bootstrap="">", line 955,
in _find_and_load_unlocked File "<frozen importlib._bootstrap="">", line 656,
in _load_unlocked File "<frozen importlib._bootstrap="">", line 626,
in _load_backward_compatible File "app/defs/defs.pyc", line 5,
in <module> File "<frozen importlib._bootstrap="">", line 971,
in _find_and_load File "<frozen importlib._bootstrap="">", line 955,
in _find_and_load_unlocked File "<frozen importlib._bootstrap="">", line 656,
in _load_unlocked File "<frozen importlib._bootstrap="">", line 626,
in _load_backward_compatible File "bmutils/utils.pyc", line 25,
in <module> File "<frozen importlib._bootstrap="">", line 971,
in _find_and_load File "<frozen importlib._bootstrap="">", line 955,
in _find_and_load_unlocked File "<frozen importlib._bootstrap="">", line 656,
in _load_unlocked File "<frozen importlib._bootstrap="">", line 626,
in _load_backward_compatible File "bmutils/insighttoolkit/init.pyc", line 1,
in <module> File "<frozen importlib._bootstrap="">", line 971,
in _find_and_load File "<frozen importlib._bootstrap="">", line 955,
in _find_and_load_unlocked File "<frozen importlib._bootstrap="">", line 656,
in _load_unlocked File "<frozen importlib._bootstrap="">", line 626,
in _load_backward_compatible File "bmutils/insighttoolkit/utils.pyc", line 5,
in <module> File "<frozen importlib._bootstrap="">", line 971,
in _find_and_load File "<frozen importlib._bootstrap="">", line 955,
in _find_and_load_unlocked File "<frozen importlib._bootstrap="">", line 656,
in _load_unlocked File "<frozen importlib._bootstrap="">", line 626,
in _load_backward_compatible File "bmutils/insighttoolkit/defs.pyc", line 3,
in <module> File "bmutils/insighttoolkit/defs.pyc", line 4,
in ItkTypes File "itkLazy.pyc", line 40,
in getattribute AttributeError: module 'itk' has no attribute 'Image'
2018-10-23 12:47:19 +08:00
回复了 aaronysj 创建的主题 程序员 浮躁,真得很浮躁...
没工作的焦虑着找工作,有工作的焦虑着没成就~
2018-10-08 09:39:14 +08:00
回复了 angel725 创建的主题 Python python3 每两位数字插一个空格,怎么实现
import re

number = "123456789"
result = re.findall("\d{1,2}", number)

print(result) # ['12', '34', '56', '78', '9']
2018-09-13 14:07:08 +08:00
回复了 css3 创建的主题 Python 求助,怎么用最简单的方便实现 list 内的数值运算需求?
@css3 字典推导式
2018-09-13 12:59:11 +08:00
回复了 css3 创建的主题 Python 求助,怎么用最简单的方便实现 list 内的数值运算需求?
看来我理解错了你的加法~
a = {'height': 0.724074, 'width': 0.226042, 'x': 0.295833, 'y': 0.275926}
b = {'height': 1080, 'width': 1920, 'x': 1920, 'y': 1080}
d = {key:int(value * b[key]) for key,value in a.items()}
return [d['x'], d['y'], d['width'] + d['x'], d['height'] + d['y']]
2018-09-13 12:52:05 +08:00
回复了 css3 创建的主题 Python 求助,怎么用最简单的方便实现 list 内的数值运算需求?
考虑到 dict 是无序的,获取的 values 不一定能一一对应上.

a = {'height': 0.724074, 'width': 0.226042, 'x': 0.295833, 'y': 0.275926}
b = {'height': 1080, 'width': 1920, 'x': 1920, 'y': 1080}
result = sum(list(value * b[key] for key,value in a.items()))
2018-09-13 12:46:12 +08:00
回复了 css3 创建的主题 Python 求助,怎么用最简单的方便实现 list 内的数值运算需求?
from operator import mul

a = {'height': 0.724074, 'width': 0.226042, 'x': 0.295833, 'y': 0.275926}
b = {'height': 1080, 'width': 1920, 'x': 1920, 'y': 1080}
result = sum(map(lambda x: mul(*x), zip(a.values(), b.values())))
2018-08-31 10:19:43 +08:00
回复了 dyllanwli 创建的主题 程序员 来来来,评价一下 Dart 这个语言?
要是 Flutter 能出另一种一套布局方式,而非用代码布局就好了.
2018-08-29 20:40:44 +08:00
回复了 Rwing 创建的主题 程序员 年度涨薪涨了 2%,算是侮辱人吗?
@luoyich 你暴露工资了~
关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   761 人在线   最高记录 5168   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.3 · 12ms · UTC 19:45 · PVG 03:45 · LAX 11:45 · JFK 14:45
♥ Do have faith in what you're doing.