| 例文 |
import-mapの部分一致の例文一覧と使い方
該当件数 : 2件
grades = "FEDCBA" breakpoints = [30, 44, 66, 75, 85] from bisect import bisect def grade(total):... return grades[bisect(breakpoints, total)]... grade(66)'C' map(grade, [33, 99, 77, 44, 12, 88])['E', 'A', 'B', 'D', 'F', 'A'] 例文帳に追加
区切り点は 85 以上は `A'、 75..84 は `B'、などです。 grades = "FEDCBA" breakpoints = [30, 44, 66, 75, 85] from bisect import bisect def grade(total):... return grades[bisect(breakpoints, total)]... grade(66)'C' map(grade, [33, 99, 77, 44, 12, 88])['E', 'A', 'B', 'D', 'F', 'A'] - Python
| 例文 |
| この対訳コーパスは独立行政法人情報通信研究機構の研究成果であり、Creative Commons Attribution-Share Alike 3.0 Unportedでライセンスされています。 |
| © 2010, Oracle Corporation and/or its affiliates. Oracle and Java are registered trademarks of Oracle and/or its affiliates.Other names may be trademarks of their respective owners. |
| Copyright 2001-2004 Python Software Foundation.All rights reserved. Copyright 2000 BeOpen.com.All rights reserved. Copyright 1995-2000 Corporation for National Research Initiatives.All rights reserved. Copyright 1991-1995 Stichting Mathematisch Centrum.All rights reserved. |
|
ログイン |
Weblio会員(無料)になると
|
|
ログイン |
Weblio会員(無料)になると
|