none.gif

哟哟哟

GF  2020-01-28 19:45

python还可以的朋友进来!

来个小游戏

>>>def PathMethod(Pathstr)
>>>    [ your code]


要求:
e.g:

>>>PathMethod('d:Document\abc')
'd:Documen/abc'

>>>PathMethod('d:360\360Document\123')
'd:360/360Document/123'

游戏规则:
输入windows路径字符串,返回posix路径字符串

a3.gif

alex

B1F  2020-01-28 19:51
(alex)
正则表达式匹配然后replace