Pythonic——打印輸出

Pythonic完美打印方式:python print("Hello %(name)s!" % {'name': 'ChenJun'}) student = {'name': 'Tom', 'age': 15, 'score': 96} print('Student: %(name)s age: %(age)s' % student) print("name: {name} age: {age
相關文章
相關標籤/搜索