import pandas as pd
import matplotlib.pyplot as plt
data = {
'潜在危害': ['皮肤炎症反应', '色素沉着风险', '皮肤敏感', '色素脱失', '皮肤损伤'],
'风险等级': ['中等', '中等', '中等', '低', '低']
}
df = pd.DataFrame(data)
fig, ax = plt.subplots(figsize=(10, 6))
ax.axis('tight')
ax.axis('off')
table = ax.table(cellText=df.values, colLabels=df.columns, cellLoc = 'center', loc='center')
plt.title('皮秒激光潜在危害及风险等级')
plt.show()