dou2347 2019-05-22 12:41 采纳率: 0%
浏览 64

打开CSV,操纵特定条目,保存(不应该那么难......好吗?)

I need to open a CSV File with 60+ rows and three columns. the third column in the file is a link. I need to add a String (ex.: "/ref="04" ") at the end of every Link and then safe it.

file looks like this

Products--------Description-------Link
Apple-----------blablabla---------http://www-anylink.com
Banana----------blablabla---------http://www-anylink.com

Should look like this afterwards (adding "/ref04" to the end of links)

Products--------Description-------Link
Apple-----------blablabla---------http://www-anylink.com/ref04
Banana----------blablabla---------http://www-anylink.com/ref04

SO the file i need to edit is for an affiliate program and i have never used PHP before. I figured out how to open and safe files, but i don't know how to edit it and put all together. It should not be that hard but i can not find any example in the Internet.

Can anyone please help me i cant wrap my head around programing. I am trying but its hard.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 树莓派安卓APK系统签名
    • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
    • ¥65 汇编语言除法溢出问题
    • ¥15 Visual Studio问题
    • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
    • ¥20 求一个html代码,有偿
    • ¥100 关于使用MATLAB中copularnd函数的问题
    • ¥20 在虚拟机的pycharm上
    • ¥15 jupyterthemes 设置完毕后没有效果
    • ¥15 matlab图像高斯低通滤波