We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd8e77c commit dcc96e3Copy full SHA for dcc96e3
3 files changed
.vscode/settings.json
@@ -0,0 +1,3 @@
1
+{
2
+ "python.pythonPath": "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3"
3
+}
1code/nameage.py
@@ -1,5 +1,7 @@
-#!/usr/bin/env python
-# coding=utf-8
+# coding:utf-8
+'''
+filename: nameage.py
4
5
6
name = input("What is your name?")
7
age = input("How old are you?")
python3code/chapter02/judgenumber.py
@@ -0,0 +1,17 @@
+#coding:utf-8
+filename: judgenumber.py
+
+print("请输入任意一个整数数字:")
+number = int(input())
8
9
+if number == 10:
10
+ print("您输入的数字是:{}".format(number))
11
+ print("You are SMART.")
12
+elif number > 10:
13
14
+ print("This number is more than 10.")
15
+else:
16
17
+ print("This number is less than 10.")
0 commit comments