Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
1259344e
Commit
1259344e
authored
Nov 24, 2023
by
BO ZHANG
🏀
Browse files
update demo
parent
fa3dff4b
Pipeline
#1609
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_proto/demo.py
View file @
1259344e
...
@@ -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
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment