My code is as follows
import openpyxl
from openpyxl.styles import Font, Style
bold16font = Font(size=16, bold=True)
I keep getting the following error
Traceback (most recent call last): File "G:\\Create WBv2.py", line 24, in bold16font = Font(size=16, bold=True) TypeError: init () got an unexpected keyword argument 'bold'
I've looked this up and even coppied directly from the toturial and keep getting this error. Whats going on here?
Update your package. command line: pip install openpyxl --upgrade
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.