[問題] django使用ampps

看板Python作者 (ohaaaateN)時間9年前 (2015/05/23 21:20), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
如題 我使用django框架 想利用ampps的套裝元件 例如 apache 和 mysql 但開啟apache後 輸入127.0.0.1/test.py後 網頁將所有的程式碼都印了出來 像是這樣↓ # -*- coding: big-5 -*- """ Spyder Editor This is a temporary script file. """ a=str('hi') print(a) print('hello') list = [3,5,90] print(list) list.append(8) print(list) tuple = (5,9,1) print(tuple) print(tuple.index(5)) print(tuple.index(9)) print(tuple.index(1)) ---------------------- 是apache沒有支援python嗎? 還是怎麼樣呢? 求高手相助阿!!! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.136.155.132 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1432387238.A.4FE.html

05/23 22:29, , 1F
參考一下吧 https://goo.gl/wvu608
05/23 22:29, 1F

05/31 15:17, , 2F
謝謝我來看看!
05/31 15:17, 2F
文章代碼(AID): #1LO7wcJ- (Python)