How linux deletes files based on the name suffix

how to delete files such as .py files based on the suffix of file names in linux

for example, now I just want to delete the data at the end of py

Jan.29,2022

rm *.py

  1. find. -name "* .py" | the xargs rm
    command is very dangerous. Execute the first half of the command to see if it is the file you want to delete, and execute
  2. on the whole.
  3. rm-I * .py delete all files with the suffix py; ask for confirmation one by one before deleting
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9f303-1a39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9f303-1a39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?