fork download
  1. book="Python 入门教程"
  2. price=49.9
  3. sentence=f"{book}的价格是{price}"
  4. print(sentence)
  5. print(type(price))
Success #stdin #stdout 0.08s 14152KB
stdin
Standard input is empty
stdout
Python 入门教程的价格是49.9
<class 'float'>