Commit 1259344e authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

update demo

parent fa3dff4b
Pipeline #1609 failed with stage
in 0 seconds
...@@ -66,9 +66,10 @@ class DemoClass: ...@@ -66,9 +66,10 @@ class DemoClass:
>>> a.say_hello() >>> a.say_hello()
""" """
def __init__(self, first_name, last_name) -> None: def __init__(self, first_name: str, last_name: str) -> None:
self.first_name = first_name self.first_name = first_name
self.last_name = last_name self.last_name = last_name
def say_hello(self) -> None: def say_hello(self) -> None:
"""111"""
print("Hello, {} {}!".format(self.first_name, self.last_name)) print("Hello, {} {}!".format(self.first_name, self.last_name))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment