ucanuupnobb icon indicating copy to clipboard operation
ucanuupnobb copied to clipboard

刷题笔记:函数变量?

Open liujuanjuan1984 opened this issue 5 years ago • 0 comments

What gets printed?

def print_header(str):
    print("+++" + str + "+++")


print_header.category = 1
print_header.text = "some info"

print_header("{} and {}".format(print_header.category, print_header.text))

liujuanjuan1984 avatar Nov 10 '19 10:11 liujuanjuan1984