Home > other >  "Very simple: to Excel in Python flying" 3.2.3
"Very simple: to Excel in Python flying" 3.2.3

Time:02-15

I tried the book 3.2.3 code is as follows:
 
the import the OSPath='example. XLSX'
Separate=OS. Path. Splilext (path)
Print (separate)


Run error:
Separate=OS. Path. Splilext (path)
AttributeError: module 'ntpath' has no attribute 'splilext'
Because I have no splitext python OS module of this function?
Bosses how to solve,,,

My python is "python 3.9.1 (tags/v3.9.1:1 e5d33e, Dec 7, 2020, 17:08:21) [MSC v. 1927 64 - bit (AMD64)] on win32"
  • Related