From 12cf426dbd28899bae9a3765c1275f4c7eb0a251 Mon Sep 17 00:00:00 2001 From: Tink_Y <31891223+tink2123@users.noreply.github.com> Date: Fri, 1 Mar 2019 14:22:31 +0800 Subject: [PATCH] Update programming_guide.md (#664) * Update programming_guide.md * Update programming_guide_en.md --- .../beginners_guide/programming_guide/programming_guide.md | 4 ++-- .../beginners_guide/programming_guide/programming_guide_en.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/fluid/beginners_guide/programming_guide/programming_guide.md b/doc/fluid/beginners_guide/programming_guide/programming_guide.md index b5493e777..bb488b446 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 0919da176..d6383d22b 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]]) -- GitLab