
イラスト


<?php
$post = [];
$posts[0] = [‘text’ => ‘hello’, ‘liles’ => 0];
$posts[1] = [‘text’ => ‘hello again’, ‘liles’ => 0];
//print_r($posts);
function show($post)
{
printf(‘%s (%d)’ . PHP_EOL, $post[‘text’], $post[‘liles’]);
}
show($posts[0]);
show($posts[1]);
https://noauto-nolife.com/post/django-makemigrations-not-applied/
Youtube見てもググっても分からなかったので本のソースコードを使いました
基本的に先にアプリを作っておくといいかもしれないですね
Djangoを習得するとWEBサービス,WEBアプリが作れそうです
test.py
from django.test import TestCase
from django.urls import resolve
from snippets.views import snippet_new, snippet_edit, snippet_detail
class CreateSnippetTest(TestCase):
def test_should_resolve_snippet_new(self):
found = resolve(“/snippets/new/”)
self.assertEqual(snippet_new, found.func)
class SnippetDetailTest(TestCase):
def test_should_resolve_snippet_detail(self):
found = resolve(“/snippets/1/”)
self.assertEqual(snippet_detail, found.func)
class EditSnippetTest(TestCase):
def test_should_resolve_snippet_edit(self):
found = resolve(“/snippets/1/edit/”)
self.assertEqual(snippet_edit, found.func)
CONCAT関数
=CONCAT
複数の文字列を結合し、一つの文字列として表示する
TEXTJOIN
=TEXTJOIN(区切り文字、空のセルは無視、テキスト1)
指定した区切り文字を挿入する、引数をすべてつなげた文字列として表示する
アニメーションの設定し忘れ
タイトル画面のカメラの配置などを修正しておいた
今日はここまで進みました
UPPER関数
=UPPER(文字列)
文字列に含まれる英字を大文字にする
LOWER関数
=LOWER(文字列)
英字をすべて小文字にする
LEN関数
文字列の文字数を表示する
=LEN(文字列)
RIGHT
文字列の右端から指定した文字数の文字列を取り出すことができる
=RIGHT(文字列,文字数)
LEFT
=LEFT(文字列,文字数)
文字列の左端から指定した文字数の文字列を取り出すことができる
MID
=MID(文字列,開始位置,文字数)
文字列の指定した位置から指定した文字数の文字列を取り出すことができる
=IF(論理式,真の場合,偽の場合)
TURE,FALSE
=
A=B AとBが等しい
<>
A<>B AとBが等しくない
>=
A>=B AがB以上
<=
A<=B AがB以上
>
A>B AがBより大きい
<
A<B
AがBより小さい