- くだすれPython(超初心者用) その35 [無断転載禁止]©2ch.net
718 :デフォルトの名無しさん (ワッチョイ dfb3-RYXs [219.204.123.70])[sage]:2017/10/22(日) 23:02:31.42 ID:V6KHSGcm0 - >>712
文字列操作で削除すると言う手もある import re re.sub(r"\.$", "", re.sub(r"0+$", "", "%f" % x))
| - C++相談室 part132
163 :デフォルトの名無しさん (ワッチョイ 7ab3-RYXs)[sage]:2017/10/22(日) 23:08:06.76 ID:V6KHSGcm0 - >>158
型推論でいいだろ auto jug_array = new std::vector<std::vector<int> >(5000); for(auto it = jug_array.begin(); it != jug_array.end(); ++it) { ... }
|
|