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

cbiqih

V2EX 第 69454 号会员,加入于 2014-07-31 12:42:26 +08:00
今日活跃度排名 711
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'
51 天前
回复了 aaronysj 创建的主题 程序员 浮躁,真得很浮躁...
没工作的焦虑着找工作,有工作的焦虑着没成就~
66 天前
回复了 angel725 创建的主题 Python python3 每两位数字插一个空格,怎么实现
import re

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

print(result) # ['12', '34', '56', '78', '9']
@css3 字典推导式
看来我理解错了你的加法~
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']]
考虑到 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()))
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())))
104 天前
回复了 dyllanwli 创建的主题 程序员 来来来,评价一下 Dart 这个语言?
要是 Flutter 能出另一种一套布局方式,而非用代码布局就好了.
105 天前
回复了 Rwing 创建的主题 程序员 年度涨薪涨了 2%,算是侮辱人吗?
@luoyich 你暴露工资了~
关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   3565 人在线   最高记录 4019   ·  
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.1 · 10ms · UTC 06:59 · PVG 14:59 · LAX 22:59 · JFK 01:59
♥ Do have faith in what you're doing.
沪ICP备16043287号-1