print('hello', 'world') #默認用空格隔開 #hello world print('hello', 'world', sep='wuli') #sep=''可以用來設置連接的字符串 #hellowuliworld print('hello') print('world') #print有默認換行功能 #hello #world print('hello', end='哈') #end=''可以設置print結束后的字符 print('world') #hello哈world