
python
LinuxKernelCiscoIOS
CISCO LINUX JUNIPER
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python_learn_input function (input 函数)
username = input('please input your name:')if username == 'admin': print('welcome admin')原创 2019-07-13 15:28:44 · 228 阅读 · 0 评论 -
python_learn_note01
## Python的介绍 Python是解释型语言 Python(英国发音:/ˈpaɪθən/ 美国发音:/ˈpaɪθɑːn/),是一种广泛使用的高级编程语言,属于通用型编程语言,由吉多·范罗苏姆创造,第一版发布于1991年。可以视之为一种改良(加入一些其他编程语言的优点,如面向对象)的LISP。作为一种解释型语言,Python的设计哲学强调代码的可读性和简洁的语法(尤其是...原创 2019-07-13 16:01:12 · 177 阅读 · 0 评论 -
python_learn while 语句
#print('hello')#input('please input enter')i = 0while i < 10 : i += 1 print(i,'hello')else: print('over')1 hello2 hello3 hello4 hello5 hello6 hello7 hello8 hello9 he...原创 2019-07-13 16:38:03 · 212 阅读 · 0 评论 -
python game01 简单的小程序
# 显示欢迎信息print('-'*20,'欢迎光临《奥特曼大战怪兽》','-'*20)# 显示身份选择的信息print('请选择你的身份:')print('\t1.奥特曼')print('\t2.怪兽')# 游戏的身份选择player_choose = input('请选择[1-2]:')# 打印一条分割线print('-'*66)# 根据用户的选择来显示不同的提示信息...原创 2019-07-13 23:00:25 · 255 阅读 · 0 评论 -
python_learn while 语句 和列表
stus = ['wukong','bajiang','shahesan','tenglao']print('old: ',stus)i = 0while i < 4: print(stus[i]) i += 1stus = ['wukong','bajiang','shahesan','tenglao','bgj','jjg']print('ol...原创 2019-07-14 10:44:16 · 218 阅读 · 0 评论