seminar:python簡単ガイド
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
seminar:python簡単ガイド [2024/07/19 09:23] – [文字列] kimi | seminar:python簡単ガイド [2024/07/19 09:24] (現在) – [文字列] kimi | ||
---|---|---|---|
行 28: | 行 28: | ||
Value = 1 | Value = 1 | ||
</ | </ | ||
+ | |||
+ | ===== 文字列 ===== | ||
+ | 既に上記の例でも使用していますが、 | ||
+ | 文字列は単引用符 ('' | ||
+ | |||
+ | |||
+ | <code python> | ||
+ | print(' | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Hello, World. | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | '' | ||
+ | |||
+ | |||
+ | <code python> | ||
+ | a = " | ||
+ | b = ' | ||
+ | print(a + b) | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Hello, World. | ||
+ | </ | ||
+ | |||
seminar/python簡単ガイド.1721348618.txt.gz · 最終更新: 2024/07/19 09:23 by kimi