fork(1) download
  1. course = "Python Programming"
  2. score = 95.5
  3. sentence = f"{course}课程的成绩是{score}分"
  4. print(sentence)
  5. print(type(score))
  6.  
  7. course_under = course.replace(" ","_")
  8. print(course_under)
  9. count_o = course.count("o")
  10. print(count_o)
  11.  
Success #stdin #stdout 0.06s 14184KB
stdin
汤旭
stdout
Python Programming课程的成绩是95.5分
<class 'float'>
Python_Programming
2