📜  doc 字符串 python 代码示例

📅  最后修改于: 2022-03-11 14:45:42.084000             🧑  作者: Mango

代码示例2
# Docstrings are used create your own Documentation for a function or for a class
# we are going to write a function that akes a name and returns it as a title.
def titled_name(name):
  # the following sting is Docstring
  """This function takes name and returns it in a title case or in other
  words it will make every first letter of a word Capitalized"""
  return f"{name}".title()