str型
int型
float型
type(変数)で型を表示することが可能です。
型の変換
str()
int()
float()
str型
int型
float型
type(変数)で型を表示することが可能です。
str()
int()
float()
nuxtを非同期として、
実行したい場合があると思います。
その場合は、
下記の方法で、
非同期で実行します。
yarn run dev &
&を後ろに付けることで、
bashコマンドを非同期で実行することが可能です。
nuxtでpugを利用する場合は、
下記のpugとstylusを追加する必要があります。
yarn add pug pug-loader pug-plain-loader stylus stylus-loader
追加が完了したら、
templateタグのlang属性に、
pugを指定することで、
nuxtでpugが利用可能です。
<template lang="pug"> section div メッセージ </template>
git init
git add .
git commit -m '[コメント]'
git log --one-line
git log --one-line -all
git diff
git diff --name-only
git diff [branch1]..[branch2] --name-only
git reset
最近のgit使用方法として、
2つのブランチを作成して、
通常はworkブランチを使用して、
ひたすらコミットを行い、
masterに一区切りついたところで、
mergeするようにしています。
この場合は、
masterにworkのコミット情報を含めたくないので、
squashオプションを利用して、コミットします。
merge --squash work
commit -m 'コメント'