seminar:python簡単ガイド
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
seminar:python簡単ガイド [2023/08/08 11:44] – [主な組み込み関数] 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. | ||
+ | </ | ||
+ | |||
行 80: | 行 109: | ||
</ | </ | ||
- | |||
- | |||
- | ===== 文字列 ===== | ||
- | |||
- | 文字列は単引用符 ('' | ||
- | |||
- | |||
- | <code python> | ||
- | print(' | ||
- | </ | ||
- | |||
- | < | ||
- | Hello, World. | ||
- | </ | ||
- | |||
- | |||
- | |||
- | '' | ||
- | |||
- | |||
- | <code python> | ||
- | a = " | ||
- | b = ' | ||
- | print(a + b) | ||
- | </ | ||
- | |||
- | < | ||
- | Hello, World. | ||
- | </ | ||
seminar/python簡単ガイド.1691462669.txt.gz · 最終更新: 2023/08/08 11:44 by kimi