Pythonで繰り返し処理をする時に使う 「for文」はイテラブルオブジェクトを繰り返す。
イテラブルオブジェクト
- リスト
- タプル
- 文字列
- 辞書
- 集合
- range オブジェクト
- ジェネレータ
リストを繰り返す
fruits = [“apple”, “banana”, “cherry”]
for fruit in fruits:
print(fruit)
Pythonで繰り返し処理をする時に使う 「for文」はイテラブルオブジェクトを繰り返す。
イテラブルオブジェクト
リストを繰り返す
fruits = [“apple”, “banana”, “cherry”]
for fruit in fruits:
print(fruit)
repository
C:\xampp\mysql\bin
Specify the location where the mysql.exe file is located.
When upgrading Python, it is easier to remove the old Python to make it easier to set up.
/*
Theme Name: "name"
Author: "name"
Version: 1.0
Template: name
*/
<?php //
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
% nano ~/.bash_profile
PATH=”/Library/Frameworks/Python.framework/Versions/3.11/bin:${PATH}”
export PATH
control + x
Y
enter
% source ~/.bash_profile
% python3 -V
I have updated python, but when I check in the terminal, I see the previous version
Stuck in a git repository.
I have to keep going, not stop.
The PHP library management software, Composer, was not installed.
Building an environment is difficult.