const rl = require("readline").createInterface({ input: process.stdin }); var iter = rl[Symbol.asyncIterator](); const readline = async () => (await iter.next()).value; /** * 自动售货机中商品为6种商品 * 商品数由 [初始化命令] 设置 */ var items = { "A1":{price: 2, amount: 0}, "A2"...