How to have more than one ID included in the exclude command?

You can pass array to exclude parameter:

$product_cats = get_terms( 
    'product_cat',
    array(
        'hide_empty'=>1,
        'exclude'=>array(8, 9, 10),
        'parent'=>0
    )
);