Python filter関数でリストを奇数だけ取得するサンプル
環境
Windows 11 Pro 64bit
Python 3.11
構文
変数t = list(filter(lambda x: x % 2 != 0, リスト名))
引数1:1つの引数 ...
Eclipse フォントの大きさを変更する方法
環境
Windows10 Pro 64bit
Eclipse
操作方法
1.「ウインドウ(W)」->「設定(P)」をクリックします。
2.「一般」->「外観」->「色と ...
Dart mapメソッドを使ってリストの要素を新しいリストを作るサンプル
環境
Windows 11 pro 64bit
Dart 2.18.4
構文
リスト.map(引数) =>式
Listで「mapメソッド」を使うには、引数に「「(T element) ...
Swift 配列の要素をランダムに取り出すサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
配列名.randomElement()
配列の要素をラン ...
Swift 辞書の値を結合して文字列に変換するサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
let result = 対象の辞書名.values.joine ...
Swift onDelete関数を使ってリスト)の要素を削除するサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
func onDelete(perform : (indexSe ...
Swift リストの要素内の余白を削除するサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
ItemView() .listRowInsets(EdgeIns ...Swift Rectangleにアスペクト比を設定するサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
Rectangle() .aspectRatio(アスペクト比, ...macOS トラックパッドの右クリックを設定する方法
環境
macOS
操作方法
1.メニューバーの「Appleメニュー」をクリックします。
2.「システム設定…」をクリックします。
3.左側の「トラックパッド」をクリックし ...
Swift TextFieldのキーボードにツールバーを追加するサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
TextField(xxx) .toolbar { Toolbar ...Flutter Materialを使ってアイコン(icon)の形を指定する方法
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
Material(
shape: CircleBorder(), //引数「shape」に形を指定する ...
Flutter TextFormFieldウェジェッに初期値を設定するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
TextFormFieldの引数「initialValue」を使ってウェジェッに初期値を設定します。
使用 ...
Flutter テキストの下線を破線にするサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
decorationStyle: TextDecorationStyle.dashed,
Textの下線を破線 ...
Swift fontWeight修飾子を使ってText(テキスト)を太字にするサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
Text("テキスト").fontWeight(.bold)...
Swift bold修飾子を使ってText(テキスト)を太字にするサンプル
環境
Swift version 5.2.3 (swift-5.2.3-RELEASE)
Ubuntu 20.04.2 LTS
構文
Text(“文字列”)
.bol ...
Flutter decorationStyleでTextの下線を点線にするサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
decorationStyle: TextDecorationStyle.dotted,
Textの下線を点線 ...
Flutter TextFormFieldのテキスト入力中の枠線の色を設定するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
focusedBorder: OutlineInputBorder( borderSide: BorderSide( c ...Flutter TextFormFieldの入力欄とエラーメッセージの間隔を変えるサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
decoration: InputDecoration( errorStyle: TextStyle( height: ...