fork download
  1. # your code goes here
  2. # your code goes here
  3. price=9.9
  4. goods="苹果"
  5. is_fresh=False
  6. print(type(price))
  7. print(type(goods))
  8. print(type(is_fresh))
  9. print("今天的"+goods+"是"+str(price)+"元1斤")
Success #stdin #stdout 0.07s 7992KB
stdin
Standard input is empty
stdout
<class 'float'>
<class 'str'>
<class 'bool'>
今天的苹果是9.9元1斤