Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
测得物体的大小6.5cm,想要把6和5分开输出,怎么写?
https://cn.bing.com/search?q=python3+数字+整数部分+小数部分&go=搜索&qs=n&form=QBRE&sp=-1&pq=python3+数字+整数部分+小数部分&sc=0-20&sk=&cvid=3DC2E87464AA4BCFA92388FA8AFBEEC2
最简单的就是除法和取模 6.5//1=6 6.5%1=0.5
@kidswong999 谢谢