我使用python 3.6并且我已经成功地从集合中导入了诸如deque和counter之类的模块,但是我无法导入Chainmap。我使用的确切语法是
from collections import Chainmap
我也试过
from collections import chainmap
我得到的确切错误信息是:
ImportError: cannot import name 'Chainmap'
答案 0 :(得分:3)
Read the documentation carefully.该课程的名称为describe('for French locale', () => {
// get the custom currency pipe instance for 'fr-CA' locale as 'currencyPipeForFR'
const thousandSeparator = () => {
return (1000).toLocaleString('fr-CA').substring(1, 2);
}
it('should be formatted for fr-CA locale', () => {
expect(currencyPipeForFR.transform('7500')).toBe('7' + thousandSeparator() + '500 $');
});
});
,中间有一个大写ChainMap
。因此:
M