mirror of
https://github.com/onestardao/WFGY.git
synced 2026-04-28 19:50:17 +00:00
8 lines
273 B
Python
8 lines
273 B
Python
def jump_example(option):
|
|
table = {
|
|
"A": lambda: print("Jumped to branch A"),
|
|
"B": lambda: print("Jumped to branch B"),
|
|
"C": lambda: print("Jumped to branch C"),
|
|
}
|
|
action = table.get(option, lambda: print("Invalid option"))
|
|
action()
|