I tried a lot of demo,finally make this work all very well ,only the custom block generator is not ok,bellow is my link,
I know I need use some code like this,but it not work under
codepen.io// import * as Blockly from 'blockly/core';
// import {pythonGenerator} from 'blockly/python';
// pythonGenerator['open_chrome3'] = function(block) {
// // var value_name = pythonGenerator.valueToCode(block, 'URL', pythonGenerator.ORDER_ATOMIC);
// // TODO: Assemble Python into code variable.
// var code = `bbbbbbbb\n`;
// return code;
// };
if I uncomment this code ,it will make a error