Python/xamppでPython

Python
「xampp」→「apache」→「conf」フォルダにある「httpd.conf」
ファイルに以下の文を追記。(一番下などに)

AddHandler cgi-script .py
ScriptInterpreterSource Registry-Strict



#pythonファイル
#!~python.exeのパス~
# -*- coding: utf-8 -*-
print("Content-Type: text/html\n")



sList = ["a", "b", "c"]
sList[0] = "A"
sList[1:3] = ["B", "C"]
sList = sList + ["d"]
sList += ["e","f"]
sList.append("g")
print(sList) #['A', 'B', 'C', 'd', 'e', 'f', 'g']