python import loso formatted_date = loso.format_date(2021, 10, 1, 'YYYY-MM-DD') current_datetime = loso.get_current_datetime() new_date = loso.add_days(formatted_date, 3) is_before = loso.is_before(new_date, formatted_date) python import loso file_path = 'data.txt' loso.write_file(file_path, 'Hello, world!') content = loso.read_file(file_path) dir_path = 'data_folder' loso.create_directory(dir_path) loso.delete_directory(dir_path) python import loso response = loso.get('https://api.example.com') print(response.status_code) print(response.text) payload = {'key': 'value'} response = loso.post('https://api.example.com', data=payload) print(response.status_code) print(response.text)


上一篇:
下一篇:
切换中文