想要去除這個空格,那么就得用標(biāo)準(zhǔn)的輸入輸出了。 1 2 importsys sys.stdout.write("asd") 這樣就不會輸出空格了。 python print函數(shù)中空格刪除 1.print函數(shù) 在print() 方法中,增加 sep= ’’ 的參數(shù) 1 2 3 a='哈哈' b='你好' print('a=',a,",b=",b,sep='') ...
www.dbjr.com.cn/python/315331i...htm 2025-5-22