問題タブ [title-case]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
r - tools::toTitleCase と stringr::str_to_title: 何が問題なのですか?
tools
推奨パッケージを使用して、この大文字の文字列をタイトルケースに変換しようとしていましたが、使用するまでできませんでしたstringr::str_to_title()
。これは私が使用した正確なコードです:
tools
バージョンで何が問題になったのですか?
python - str.capitalize() と str.title() に違いはありますか?
str.title()
vsに違いはありますstr.capitalize()
か?ドキュメントからの私の理解は、両方の方法が単語の最初の文字を大文字にし、残りの文字を小文字にすることです。互換的に使用できない状況に遭遇した人はいますか?