13 lines
340 B
Python
Executable File
13 lines
340 B
Python
Executable File
#!/usr/bin/env python3
|
|
from urllib.parse import unquote
|
|
from os import environ
|
|
from sys import exit
|
|
|
|
if "QUERY_STRING" not in environ or len(unquote(environ["QUERY_STRING"]))==0:
|
|
print("10 Please enter your name",end="\r\n")
|
|
exit()
|
|
name = unquote(environ["QUERY_STRING"])
|
|
|
|
print("20 text/gemini",end="\r\n")
|
|
print(f"Hello {name}!")
|