• Skip to main content
  • Skip to primary sidebar

学習記録

webアプリ 一番簡単なpython

2017年9月30日 by 河副 太智 Leave a Comment

http://hukumoto.pe-gawa.com/news/%E3%82%A8%E3%83%83%E3%82%AF%E3%82%B9%E3%82%B5%E3%83%BC%E3%83%90%E3%81%A7%E3%80%81perl%E3%83%BBruby%E3%83%BBpython%E3%82%92%E5%8B%95%E3%81%8B%E3%81%99%E3%80%82

 

 

●pythonを動かす。

1、test.pyを作成します。

1
2
3
4
5
#!/usr/bin/python
# coding: shift_jis
print "Content-Type: text/html\n\n"
print "python!!!!"
 

2、test.pyのパーミッションを705に変更します。
3、.htaccessを作成し、
AddHandler cgi-script .py
を書いて保存。

これで。pythonが動くようになりました。

このエントリーをはてなブックマークに追加

Tweet
[`yahoo` not found]
このエントリーを Google ブックマーク に追加
LinkedIn にシェア
LINEで送る


Filed Under: python3

Reader Interactions

コメントを残す コメントをキャンセル

メールアドレスが公開されることはありません。 ※ が付いている欄は必須項目です

Primary Sidebar

カテゴリー

  • AWS
  • Bootstrap
  • Dash
  • Django
  • flask
  • GIT(sourcetree)
  • Plotly/Dash
  • VPS
  • その他tool
  • ブログ
  • プログラミング
    • Bokeh
    • css
    • HoloViews
    • Jupyter
    • Numpy
    • Pandas
    • PosgreSQL
    • Python 基本
    • python3
      • webアプリ
    • python3解説
    • scikit-learn
    • scipy
    • vps
    • Wordpress
    • グラフ
    • コマンド
    • スクレイピング
    • チートシート
    • データクレンジング
    • ブロックチェーン
    • 作成実績
    • 時系列分析
    • 機械学習
      • 分析手法
      • 教師有り
    • 異常値検知
    • 自然言語処理
  • 一太郎
  • 数学
    • sympy
      • 対数関数(log)
      • 累乗根(n乗根)
    • 暗号学

Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in