Generation

generate functionFri, 02 Jun 2023

C:\\Users\\58395\\Desktop\\python汇报\\公司年报\\宁德时代\\宁德时代:2022年年度报告.PDF。获取上述路径中后面一个冒号前面的公司名称

def company(path): index = path.rfind(':\\') return path[index + 2:] company('C:\\Users\\58395\\Desktop\\python汇报\\公司年报\\宁德时代\\宁德时代:2022年年度报告.PDF')

Want to kickstart your project?Use the new AI Studio to create your code