V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
abersheeran
V2EX  ›  PHP

把 Python web 当 PHP web 写

  •  
  •   abersheeran · 2020-09-09 17:19:30 +08:00 · 2476 次点击
    这是一个创建于 1322 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://github.com/Aber-s-practice/fake-php

    随手建了一个项目玩玩,仅供娱乐。如果你喜欢 .py 的后缀,把 .php 改成 .py 就行了。

    哈哈哈,有时候这种设计之外的用法还是蛮有意思的。

    8 条回复    2020-09-10 12:37:05 +08:00
    Patrick95
        1
    Patrick95  
       2020-09-09 17:35:23 +08:00
    和我理解的 Fake PHP 不太一样
    wellsc
        2
    wellsc  
       2020-09-09 17:41:11 +08:00 via iPhone
    ...
    wysnylc
        3
    wysnylc  
       2020-09-09 17:46:56 +08:00
    那我也把 Java web 当成 php web 写过
    abersheeran
        4
    abersheeran  
    OP
       2020-09-09 21:50:21 +08:00
    哈哈哈。文件映射方式啊。文件是什么路径,对应的 URL 就是啥。
    @Patrick95
    @wellsc
    @wysnylc
    lijialong1313
        5
    lijialong1313  
       2020-09-10 09:34:22 +08:00
    差点以为我写个 php 文件你能用 python 跑起来
    8520ccc
        6
    8520ccc  
       2020-09-10 11:36:06 +08:00
    毫无意义啊
    abersheeran
        7
    abersheeran  
    OP
       2020-09-10 12:36:22 +08:00
    @8520ccc 纯属娱乐。。。
    abersheeran
        8
    abersheeran  
    OP
       2020-09-10 12:37:05 +08:00
    @lijialong1313 。。。那必然是不行,不过 Python 社区有一个项目可以把 Python 和 html 混着写。那个再配上这个文件映射 URL,就有 PHP 那味儿了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4930 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:54 · PVG 17:54 · LAX 02:54 · JFK 05:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.