fork download
  1. price=9.9
  2. goods="苹果"
  3. is_fresh=False
  4. print(type(price))
  5. print(type(goods))
  6. print(type(is_fresh))
  7. print(goods+"的价格是"+str(price)+"元")
Success #stdin #stdout 0.07s 7996KB
stdin
Standard input is empty
stdout
<class 'float'>
<class 'str'>
<class 'bool'>
苹果的价格是9.9元