我是Python的新手,因此需要帮助从1个csv中为1列中的值创建多个csv。 我的原始csv文件示例如下。原始文件有1000行。
<section class="programDescriptionSection">
<div class="programDescriptionDiv">
<div class="imageDiv">
<img id="closingStemGapImage" src="https://www.plextek.com/wp-content/uploads/default-placeholder-1024x1024-500x500-1.png" alt="">
</div>
<div class="paragraphDiv">
<p class="homepageSectionParagraph">
The Codigo Initiative aims to close the STEM opportunity divide in under-resourced Chicago-area school districts by connecting classroom
teachers with tech-industry professionals. This pairing creates sustainable Computer Programming curriculums where volunteers support
teachers as they learn the basics of Computer Programming. Ultimately,the teachers will infuse their newly-found STEM skills into their
existing classroom curriculums. The end-result is an enhanced classroom experience where teachers empower their students to compete in today's
economy,and inspire them to create a better future for themselves and their communities.
</p>
</div>
</div>
</section>
对于上面的示例,我想运行一个for战利品,以为FolderOwner = Roy和Jack创建2个新的csv文件。在原始的csv文件中,我有50个FolderOwners。 有了这些CSV文件后,我想使用EmailAddress文件夹向所有者发送自动电子邮件,但这是第2部分。
首先,我需要一个带for循环的python脚本,以自动为Roy和Jack创建2个csv文件。
我有以下脚本,但是为此,我需要手动提供FolderOwner,这对于50个所有者来说很难。
Path FolderName FolderOwner EmailAddress
\\A\folder1\subfolder1\file1 folder1 Roy Roy@gmail.com
\\A\folder2\subfolder4\file7 folder2 Roy Roy@gmail.com
\\A\folder3\subfolder11\file9 folder3 Jack Jack@gmail.com
\\A\folder4\subfolder13\file12 folder4 Jack Jack@gmail.com
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。