7.   丮 ٷ

######################################
Ʒ ڵ 7 ǽ Դϴ.
>>> κ ڵ带 ̽  ԷϿ մϴ.
>>>  ڵ ̿  Էմϴ.
>>>   ڵ ̽ ڵ̰
>>>   κ  Դϴ.
  ܰ躰 ԷϿ   Ȯ մϴ.
######################################

7.1.1 ǥ 
>>>msg = 'hello '
>>>print(msg + 'pyo sun young')
hello pyo sun young

>>>print(msg, 'pyo sun young')
hello  pyo sun young


7.1.2 ǥ Է
>>>name = input('̸ Էϼ :')
̸ Էϼ :

>>>print(name)



7.1.3  
>>>f = open('test.txt','w')
>>>print('file write', file=f)
>>>f.close()

>>>import os
>>>os.mkdir("test1")
>>>f = open('test1/test.txt','w')
>>>print('  ׽Ʈ', file=f)
>>>f.close()

>>>f = open('test1/test.txt')
>>>f.read()
'  ׽Ʈ\n'
>>>f.close()


>>>with open('test1/auto.txt', 'w') as f:
...     print(' ڵ ݱ ׽Ʈ', file=f)
...
>>>

>>>import os
>>>os.mkdir("丮1")
>>>f = open('丮1/1.txt','w')
>>>print('  ׽Ʈ', file=f)
>>>f.close()

>>>contents = ['̽ ⺻ ', '  ', '̽ ִ']
>>>with open('丮1/2.txt','w') as f:
...     f.write('Ʈ  ϱ.\n')
...     f.writelines(contents)
...
14

>>> contents = ['̽ ⺻ ', '  ', '̽ ִ']
>>> with open('丮1/3.txt','w') as f:
...    f.write('Ʈ  ϱ.\n')
...    for text in contents:
...        f.write(text+"\n")
...



