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.08s 7924KB
stdin
Standard input is empty
stdout
<class 'float'>
<class 'str'>
<class 'bool'>
今天的苹果9.9一斤