반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Tkinter
- numpy
- array
- PANDAS
- list
- math
- matplotlib
- Mac
- google apps script
- SQL
- PostgreSQL
- Google Spreadsheet
- django
- Redshift
- Java
- Excel
- Python
- hive
- gas
- PySpark
- Kotlin
- dataframe
- string
- GIT
- Apache
- c#
- 파이썬
- Google Excel
- Github
Archives
- Today
- Total
달나라 노트
Google Apps Script : length (문자열 길이, 텍스트 길이, 문자 개수) 본문
Google Apps Script
Google Apps Script : length (문자열 길이, 텍스트 길이, 문자 개수)
CosmosProject 2022. 11. 30. 20:00728x90
반응형
String 객체의 length 속성은 문자열의 길이를 나타냅니다.
Syntax
String.length
length 속성은 String객체 있으므로 위처럼 그냥 문자열에 length를 적용시켜주면 됩니다.
function myFunction(){
var test_string = 'Apple사과';
Logger.log(test_string.length);
}
-- Result
7.0
test_string에는 Apple사과 라는 7개의 글자를 가진 텍스트가 적혀있습니다.
여기에 length를 적용시키면 7이 return되며 이것은 문자의 길이(글자수)를 의미합니다.
728x90
반응형
'Google Apps Script' 카테고리의 다른 글
Comments