GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — judge number · morristech/StarterLearningPython@dcc96e3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .vscode
    • settings.json
  • 1code
    • nameage.py
  • python3code/chapter02
    • judgenumber.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.vscode/settings.json‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.pythonPath": "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3"
3+
}
Collapse file

‎1code/nameage.py‎

Copy file name to clipboardExpand all lines: 1code/nameage.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
#!/usr/bin/env python
2-
# coding=utf-8
1+
# coding:utf-8
2+
'''
3+
filename: nameage.py
4+
'''
35

46
name = input("What is your name?")
57
age = input("How old are you?")
Collapse file

‎python3code/chapter02/judgenumber.py‎

Copy file name to clipboard
+17Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#coding:utf-8
2+
'''
3+
filename: judgenumber.py
4+
'''
5+
6+
print("请输入任意一个整数数字:")
7+
number = int(input())
8+
9+
if number == 10:
10+
print("您输入的数字是:{}".format(number))
11+
print("You are SMART.")
12+
elif number > 10:
13+
print("您输入的数字是:{}".format(number))
14+
print("This number is more than 10.")
15+
else:
16+
print("您输入的数字是:{}".format(number))
17+
print("This number is less than 10.")

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.