diff --git a/doc/fluid/beginners_guide/programming_guide/programming_guide.md b/doc/fluid/beginners_guide/programming_guide/programming_guide.md index b5493e7776d2a84ae3614fb015ac57384381f5eb..bb488b44699b16fffd13216a42152efb18662833 100644 --- a/doc/fluid/beginners_guide/programming_guide/programming_guide.md +++ b/doc/fluid/beginners_guide/programming_guide/programming_guide.md @@ -133,8 +133,8 @@ exe.run(fluid.default_startup_program()) #网络参数初始化 #准备数据 import numpy -data_1 = input("a=") -data_2 = input("b=") +data_1 = int(input("Please enter an integer: a=")) +data_2 = int(input("Please enter an integer: b=")) x = numpy.array([[data_1]]) y = numpy.array([[data_2]]) diff --git a/doc/fluid/beginners_guide/programming_guide/programming_guide_en.md b/doc/fluid/beginners_guide/programming_guide/programming_guide_en.md index 0919da1768f33a4a0a45923f6577be4f629c04d6..d6383d22bc7a06f934e17078f8fed517d823cf1a 100644 --- a/doc/fluid/beginners_guide/programming_guide/programming_guide_en.md +++ b/doc/fluid/beginners_guide/programming_guide/programming_guide_en.md @@ -137,8 +137,8 @@ exe.run(fluid.default_startup_program()) #initialize network parameters #Prepare data import numpy -data_1 = input("a=") -data_2 = input("b=") +data_1 = int(input("Please enter an integer: a=")) +data_2 = int(input("Please enter an integer: b=")) x = numpy.array([[data_1]]) y = numpy.array([[data_2]])