|
>>> print(1, 2, 3, sep='\n')
1
2
3
>>> print('1\n2\n3')
1
2
3
print(1,end='')
print(2, end='')
print(3)
[½ÇÇà°á°ú]
123
print(1, end=' ')
print(2, end=' ')
print(3)
[½ÇÇà°á°ú]
1 2 3
print('name?', end="")
name = input();
print("name: {0}, type: {1}".format(name,type(name)))
name = input('name?');
print("name: {0}, type: {1}".format(name,type(name)))
name = input('type Ctrl+D or Ctrl+Z+Enter');
n=input("String?")
print(n,type(n))
n=eval(input("Number?"))
print(n,type(n))
n=int(input("Integer?"))
print(n,type(n))
n=int(input("Binary?"),2)
print(n,type(n))
n=int(input("Hexa?"),16)
n=float(input("Float?"))
print(n,type(n))
n=eval(input("type [1,2,3,4]:"))
print(n,type(n))
|
|