1 JavaScript[ | ]
JavaScript
Copy
var person = prompt("What is your name?");
JavaScript
Copy
var person = prompt("Please enter your name", "Harry Potter");
2 Python[ | ]
Python
Copy
name = input("What is your name? ")
print( name )
# What is your name? John Smith
# John Smith
3 Ruby[ | ]
Ruby
Copy
print "What is your name? "
name = gets.chomp
4 Visual Basic[ | ]
vbnet
Copy
title = "InputBox Demo"
message = "What is your name?"
defaultValue = "Harry Potter"
myValue = InputBox(message, title, defaultValue)
5 Perl[ | ]
Perl
Copy
print "What is your name? ";
my $person = <STDIN>;
chomp $person;
print "$person\n";
# What is your name? John Smith
# John Smith
6 Windows Batch[ | ]
batch
Copy
@echo off
set /p person="What is your name? "
echo %person%
rem What is your name? John Smith
rem John Smith
7 POSIX Shell[ | ]
Bash
Copy
echo -n "What is your name? "
read name
echo $name
rem What is your name? John Smith
rem John Smith
8 같이 보기[ | ]
9 참고[ | ]
편집자 Jmnote Jmnote bot 182.211.115.99
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- Python (25)
- JavaScript (13)
리눅스 Python 2.7 컴파일 설치 ― …리눅스 Python 2.7 컴파일 설치 ― …리눅스 Python 2.7 컴파일 설치 ― …리눅스 Python 2.7 컴파일 설치 ― …리눅스 Python 2.7 컴파일 설치 ― Jmnote리눅스 Python 2.7 컴파일 설치 ― ㅇㅇㅇ미운코딩새끼 ― 승호 도령미운코딩새끼 ― 불탄고등어미운코딩새끼 ― 김레이미운코딩새끼 ― 호박이미운코딩새끼 ― Junhg0211미운코딩새끼 ― 김왼손미운코딩새끼 ― 용딘이미운코딩새끼 ―Pinkcrimson
유기농냠냠파이썬 ― 호박유기농냠냠파이썬 ― 이에스유기농냠냠파이썬 ― 이승현파이썬 global ― Jmnote파이썬 global ― John Jeong파이썬 global ― Jmnote파이썬 global ― John Jeong파이썬 global ― John Jeong파이썬 global ― John Jeong파이썬 global ― Jmnote파이썬 global ― John Jeong