pcyuen98 / python-intro

0 stars 0 forks source link

JsonWeb #4

Open jkhoo9290 opened 3 years ago

jkhoo9290 commented 3 years ago

import web

urls = ( '/', 'index1' # the index1 is mapping to the class name below on line 4

)

class index1: def GET(self): import Json # import something from GetMethod py File

return "Hello Chrome 123!" # return simple message

    return Json.loadJson()

if name == "main": # Standard Web Starter Instruction app = web.application(urls, globals()) # Mapping to line 4 'urls' variable to tell Python app.run() # Standard Web Starter Instruction

Screenshot 2020-11-29 18 18 55

pcyuen98 commented 3 years ago

This is a sample issue only