最佳答案
我有这样一个函数,它引用一个文件的路径:
some_obj.file_name(FILE_PATH)
其中 FILE _ PATH 是文件路径的字符串,即 H:/path/FILE_NAME.ext
I want to create a file FILE_NAME.ext inside my python script with the content of a string:
some_string = 'this is some content'
How to go about this? The Python script will be placed inside a Linux box.