"""
This script creates an empty files. <- doc string
"""
filename="sample1.txt"
#Create empty file
def create_file():
"""This function creates an empty file"""
with open(filename,"w") as file:
file.write("") #Write empty string
PS
>>> import file_function1
>>> file_function1.__doc__
'\nThis script creates an empty files. <- doc string\n'
코드하이라이트 계속 날라가네 ....
답글삭제PS(PowerShell) 에서 Docstring 확인
답글삭제