今という器の中から

過ごした時間を振り返る雑記ブログ

2016-10-04から1日間の記事一覧

pythonを使った、英文を分解し,アルファベットの文字数を取得したリストの作成の学習メモ

sentence = "Now I need a drink, alcoholic of course, after the heavy lectures involving quantum mechanics." count = [len(word.strip(".,")) for word in sentence.split()] print(count) 言語処理100本ノック 第1章 in Python - Qiita sentence="Now…