Why x not showing the the value of 'two' …?

前端 未结 0 418
余生分开走
余生分开走 2020-12-05 16:23

Why x not showing the the value of \'two\' ...?
x=\'07:05:45\' one=x[:-6] print(one) two=int(one)+int(12) print(two) x.replace(\'one\',\'two\') print(str(x))

相关标签:
回答
  • 消灭零回复
提交回复
热议问题