我正试图替换在引号中的第一个词,从一个 串a 中 "value "的第一个实例。 string b 等等。
a = What is the id where we have 'sony electronics' as company name and 'pc' as the device type?
b = '''select * from DIM_DEVICE_TYPE where COMPANY_NAME = ' value ' and DEVICE_TYPE = ' value ' '''
expected output
select * from DIM_DEVICE_TYPE where COMPANY_NAME = 'sony electronics' and DEVICE_TYPE = 'pc'