print()
任意のオブジェクトを標準出力に出力します。
テキストストリームファイルに出力されます。
sepで区切られ、その後にendが続きます。sep、end、file、およびflushが存在する場合は、キーワード引数として指定する必要があります。
使用例
print('a', 'b', 'c', sep='/')
# 実行結果 a/b/c
print('Happy')
# 実行結果 Happy
print('data', end=': ')
print('abc')
# 実行結果 data: abc
a = open('test.txt', 'w')
print('printで出力', file=a)
f.close()