编辑器
def my_function(username, **details): print("Username:", username) print("Additional details:") for key, value in details.items(): print(" ", key + ":", value) my_function("emil123", age = 25, city = "Oslo", hobby = "coding")
Username:emil123
Additionaldetails:
age:25
city:Oslo
hobby:coding