fork download
  1. # your code goes here
  2. def weatherSkill(city,date):
  3. return f'我是您的AI小天气,查询到{city},{date}的天气为多云转晴'
  4.  
  5. changsha=weatherSkill("长沙","2026-10-10")
  6. beijing=weatherSkill("北京","2026-10-11")
  7. yueyang=weatherSkill("岳阳","2026-10-12")
  8.  
  9. print(changsha)
  10. print(beijing)
  11. print(yueyang)
Success #stdin #stdout 0.09s 7948KB
stdin
Standard input is empty
stdout
我是您的AI小天气,查询到长沙,2026-10-10的天气为多云转晴
我是您的AI小天气,查询到北京,2026-10-11的天气为多云转晴
我是您的AI小天气,查询到岳阳,2026-10-12的天气为多云转晴