嗨,我正在尝试拆分文本
For example
'C:/bye1.txt'
i would want 'C:/bye1.txt' only
'C:/bye1.txt C:/hello1.txt'
i would want C:/hello1.txt only
'C:/bye1.txt C:/hello1.txt C:/bye2 C:/bye3'
i would want C:/bye3 and so on.
我试过的代码,问题是它只打印出Y。
x = "Hello i am boey"
Last = x[len(x)-1]
print Last