new file function.py
modified

add line for windows or linux or not.