print 用法

5年以前  |  阅读数:456 次  |  编程语言:Python 
>>> lst = [1,3,5]
# f 打印
>>> print(f'lst: {lst}')
lst: [1, 3, 5]
# format 打印
>>> print('lst:{}'.format(lst))
lst:[1, 3, 5]

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8