Import or import from

51 views
Skip to first unread message

Info user

unread,
Feb 19, 2022, 9:57:39 AM2/19/22
to openpyxl-users
Hello all,

My understanding is that in general, we should avoid using the from..import statement and use the import statement instead. However, if I use 'import openpyxl', it does not import everything. For example if I need Font or Alignment, I have to use 'from openpyxl. styles import Font' and 'from openpyxl. styles import Alignment' separately.

Can you please clarify this?

Thanks.
Reply all
Reply to author
Forward
0 new messages