diff --git "a/.idea/Python\345\237\272\347\241\200\350\257\276.iml" "b/.idea/Python\345\237\272\347\241\200\350\257\276.iml" index e7a5bc3bdce39c5c698d9e4526c1e700c42e4d4b..ce5947ee71a4b5fa160200d50f61ce32a325f14f 100644 --- "a/.idea/Python\345\237\272\347\241\200\350\257\276.iml" +++ "b/.idea/Python\345\237\272\347\241\200\350\257\276.iml" @@ -4,7 +4,7 @@ - + diff --git a/.idea/misc.xml b/.idea/misc.xml index 1951d60bbb62e5fd51d51b86bf8c39f80b3ed4b9..cea2b38e00f74ca782b500ae4baa8a75a8c03f5f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git "a/\350\257\276\345\220\216\344\275\234\344\270\232/\347\254\254\344\270\200\345\244\251\344\275\234\344\270\232/\346\235\250\351\207\221\350\266\205/Charpter3/Q1.py" "b/\350\257\276\345\220\216\344\275\234\344\270\232/\347\254\254\344\270\200\345\244\251\344\275\234\344\270\232/\346\235\250\351\207\221\350\266\205/Charpter3/Q1.py" new file mode 100644 index 0000000000000000000000000000000000000000..3620086383cc8538c9c5660322900915c78df27c --- /dev/null +++ "b/\350\257\276\345\220\216\344\275\234\344\270\232/\347\254\254\344\270\200\345\244\251\344\275\234\344\270\232/\346\235\250\351\207\221\350\266\205/Charpter3/Q1.py" @@ -0,0 +1,12 @@ +'''1. 在Windows和Linux下创建一个Python_First.py的代码,计算 1 + + 2的结果,并且打印到屏幕上。 + 提示:需要把1+2的结果赋值到一个变量,例如:result。然后把字符串“计算结果为:”和result连接在一起,并打印。 + + 作业标准: + 1. 提供完整的代码(Windows或者Linux) + 2. 提供在Windows或Linux上类似于如下效果的截图 + ![](https://gitee.com/qytanggit/Python_Basic/raw/master/image/Charpter3/3.1.png)''' + +result = 1 + 2 + +print('计算 1 + 2 的结果为:' + str(result))