Fix typo in python class tutorial. Resolve #3211
This commit is contained in:
parent
eed5ea78a4
commit
8b4b48737c
1 changed files with 2 additions and 3 deletions
|
|
@ -72,11 +72,10 @@ all one by one:
|
||||||
If there were _a lot_ of functions, you could instead just import `test` and get the function
|
If there were _a lot_ of functions, you could instead just import `test` and get the function
|
||||||
from there when you need (without having to give the full `world.test` every time):
|
from there when you need (without having to give the full `world.test` every time):
|
||||||
|
|
||||||
> from world import test ; test.hello_world(me
|
> from world import test ; test.hello_world(me)
|
||||||
Hello World!
|
Hello World!
|
||||||
|
|
||||||
You can also _rename_ stuff you import. Say for example that the module you import to already
|
You can also _rename_ stuff you import. Say for example that the module you import to already has a function `hello_world` but we also want to use the one from `world/test.py`:
|
||||||
has a function `hello_world` but we also want to use the one from `world/test.py`:
|
|
||||||
|
|
||||||
from world.test import hello_world as test_hello_world
|
from world.test import hello_world as test_hello_world
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue