使用PHP列出产品属性

I am making a new shop template using an old template so as to quickly achieve my needs.

Below is the portion of the code to get the price of a product:

<td style="width: 10%;">
<?php
   $product = new WC_Product(get_the_ID());
   echo $product->get_price_html();
?>
</td>

I want to achieve something similar, with product attributes.

This is a simple way to print the product attributes.

foreach ($product->get_attributes() as $attribute) {
   echo '<p>'.$product->get_attribute($attribute).'</p>';
}