Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はPythonの初心者です。コードを 10 ごとに丸めたいと思います。33から30まで。
def roundoff(a, b): b = round(b) print str(a) + " you are around " + str(b) + " years old." >>> roundoff("Bob", 33) Bob you are around 33.0 years old.
どうすれば修正できますか?