Skip to content

Commit 385fd98

Browse files
committed
Add demo func to hello program
Signed-off-by: lelia <[email protected]>
1 parent bcb6ac3 commit 385fd98

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hello.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/usr/bin/env python
22

3+
import requests
4+
35
def run():
46
print('Hello world')
7+
demo()
8+
9+
def demo():
10+
x = requests.get('https://w3schools.com/python/demopage.htm')
11+
print(x.text)
512

613
run()

0 commit comments

Comments
 (0)