サイトのタイトルを書きます。

サブタイトルを書きます。

dfの作成方法と操作方法まとめ

データフレームテーブルの作成方法 df = pd.DataFrame( data={'one': [1, 2, 3, 4], 'two': [10, 10, 20, 20], 'three': [100, 200, 300, 400], 'four': [1000, 2000, 3000, 4000]} ) df 使用目的:テーブル操作の練習に使用する。 ざっと型情報を見る df.inf…

ITP1 全回答 C++

ITP1_1_A: Hello World C++ #include <bits/stdc++.h> using namespace std; int main() { cout << "Hello World"<< endl; } Python print("Hello World")</bits/stdc++.h>

サーバーを立ち上げる方法とは?

cd djangoプロジェクト名 pyhon3 manage.py runserver

urls.pyとは?

ブラウザから取ったrequestを元にして、views.pyに命令を出す役割をするファイルです。

_init_.pyとは?

他のPythonファイルから、_init_.pyファイルが入っているディレクトリを呼び出した際に、そのディレクトリには、Pythonのファイルが入っているということを知らせるために入っているファイル。 __init__.pyファイルがあると、他のファイルからクラスや関数を…

Djangoのプロジェクト作成のために使用するコマンドは?

django-admin startproject プロジェクト名

MVCとは?

Model View Controllerの略Djangoでは、■Controller Controllerが、requestに対してどう処理をするのかを判断して、指示します。 urls.py views.py■Model どんな風にデータを入れるのかを決める役割を持ちます models.py■View ブラウザに表示する情報を詰め…

Djangoのウェブサーバーの仕組みは?

ユーザーがリクエストを行ったものに対して、テンプレートの中から1つ選び、データベースのデータと組み合わせて提供する。 一般的なウェブサーバーとの違う点は、テンプレートを通してやりとりを行うこと。

一般的なウェブサーバーの仕組みとは?

一般的に、ユーザー側からのリクエスト(url)に従って、サーバー側からサーバー上にあるファイルを返す仕組みになっている。Webサーバーとしての機能を持つプログラミング言語 ・Apache ・Nginx

ウェブフレームワークとは?

ウェブフレームワークとは...Webアプリケーションや、システムを開発するために必要な機能が予め用意されたもの■メリット ・開発にかかる時間の削減が可能 ・バグを減らせる

A - Bichrome Cells

■回答C++ #include <bits/stdc++.h> using namespace std; int main() { // 一年の秒数 int N,A; cin >> N >> A; cout << N*N-A << endl; } atcoder.jp</bits/stdc++.h>

A - Rating Goal

■回答C++ #include <bits/stdc++.h> using namespace std; int main() { int a,b; cin >> a >> b; cout << 2*b-a << endl; } ■備考 A=今回求める数 (a+A)/2 = b A=2b-aatcoder.jp</bits/stdc++.h>

A - New Year

■回答C++ #include <bits/stdc++.h> using namespace std; int main() { int Time; cin >> Time; int RemainTime = 24+24-Time; cout << RemainTime << endl; } atcoder.jp</bits/stdc++.h>

EX4 - ◯年は何秒?

■回答C++ #include <bits/stdc++.h> using namespace std; int main() { // 一年の秒数 int seconds = 365 * 24 * 60 * 60; // 以下のコメント/* */を消して追記する cout << seconds << endl; cout << 2*seconds << endl; cout << 5*seconds << endl; cout << 10*seconds <</bits/stdc++.h>…

EX3 - 計算問題

■回答C++ #include <bits/stdc++.h> using namespace std; int main() { cout << 100/2*(100+1) << endl; } ■注意点 C++では、1/2=0 2/2=1 3/2=1 小数点以下は出力されない。 atcoder.jp</bits/stdc++.h>

EX2 - エラーの修正

■回答C++ #include <bits/stdc++.h> using namespace std; int main() { cout << "いつも" << "2525" << endl; cout << "AtCoderくん" << endl; } atcoder.jp</bits/stdc++.h>

EX1 - コードテストと出力の練習

■回答C++ #include <bits/stdc++.h> using namespace std; int main() { cout << "こんにちは" << endl; cout << "AtCoder" << endl; } atcoder.jp</bits/stdc++.h>