您是否曾經感覺到自己所做的一切都是從 Stack Overflow 複製/貼上?
讓我們更進一步。
from stackoverflow import quick_sort
將遍歷搜尋結果[python] quick sort
尋找最大的程式碼區塊 >> > from stackoverflow import quick_sort , split_into_chunks
>> > print ( quick_sort . sort ([ 1 , 3 , 2 , 5 , 4 ]))
[ 1 , 2 , 3 , 4 , 5 ]
>> > print ( list ( split_into_chunks . chunk ( "very good chunk func" )))
[ 'very ' , 'good ' , 'chunk' , ' func' ]
>> > print ( "I wonder who made split_into_chunks" , split_into_chunks . __author__ )
I wonder who made split_into_chunks https : // stackoverflow . com / a / 35107113
>> > print ( "but what's the license? Can I really use this?" , quick_sort . __license__ )
but what ' s the license ? Can I really use this ? CC BY - SA 3.0
>> > assert ( "nice, attribution!" )
該模組可以根據您想要的任何許可證進行許可,只要該許可證與我公然從 Python 標準庫複製多行程式碼的事實兼容即可。