python各种问题

f-string 字串格式化

f-string提供的是一种使用最简单的语法将表达式嵌入字符串的方式。

https://blog.csdn.net/qq_33453253/article/details/79653546

>>>stock='tsmc'

>>>close=217.5

>>>f'{stock} price: {close}'

'tsmc price: 217.5'

pip安装指定版本的包

pip install matplotlib==2.\ast

猜你喜欢

转载自blog.csdn.net/whyerdiku/article/details/80599909
今日推荐