首页
/
每日頭條
/
科技
/
常用的python腳本
常用的python腳本
更新时间:2024-10-05 04:26:19

  1、冒泡排序。

  2、計算x的n次方的方法。

  3、計算階乘 n。

  4、列出當前目錄下的所有文件和目錄名。

  5、把一個list中所有的字符串變成小寫。

  6、輸出某個路徑下的所有文件和文件夾的路徑。

  7、輸出某個路徑及其子目錄下的所有文件路徑。

  8、輸出某個路徑及其子目錄下所有以.html為後綴的文件。

  9、把原字典的鍵值對颠倒并生産新的字典。

  10、判斷字符串是否隻由數字組成。

Comments
Welcome to tft每日頭條 comments! Please keep conversations courteous and on-topic. To fosterproductive and respectful conversations, you may see comments from our Community Managers.
Sign up to post
Sort by
Show More Comments
Copyright 2023-2024 - www.tftnews.com All Rights Reserved