منظورم اینه این فایل پایتون مگه نیست ؟ خروجیه پایتون باشه پس html چطوری بهش وصل بشه آخه صفحه html من آمادست فقط باید به پایتون وصل شه ...آره وسطش کد رو میزاریم ولی خروجی بازم فایل پایتونه....
من چطور میتونم یه صفحه html که یه قرار موتور جستجویی باشه که هسته برنامه ای اون پایتونه رو راه بسازم که خروجی بده ....یعنی روی فایل Html کلیک کنم و کلمه ای رو سرچ کنم و فایل پایتون توی همون صفحه HTML (تویه یه چیزی شبیه لیست باکس ) بهم نمایش بده... من یه نرم افزار پیدا کردم که اسمش Google App Engine هستش ولی موقع اجرا رو سیستمم ارورداره (فقط وقت اجرا )روی یه سیستم دیگه امتحانش کردم انجام داد و پس از اجرا روی صفحه HTML که خودش اتومات باز کرد HELLO WORD رو نوشت و توی کد پایتونش این چیزا رو نداره اینم کد پایتونشه
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import webapp2
class MainHandler(webapp2.RequestHandler):
def get(self):
self.response.write('Hello world!')
app = webapp2.WSGIApplication([
('/', MainHandler)
], debug=True)