首页
学习
活动
专区
工具
TVP
发布

oeasy教您玩转linux、python

oeasy教您玩转linux、python
专栏成员
202
文章
111365
阅读量
24
订阅数
[oeasy]python0041_输出ASCII码表_英文字符编码_键盘字符_ISO_646
for num in range(123): print(num, chr(num),sep=":")
oeasy
2024-11-15
30
[oeasy]python040_缩进几个字符好_输出所有键盘字符_循环遍历_indent
oeasy
2024-11-11
540
[oeasy]python039_for循环_循环遍历_循环变量
for num in range(97,122): print(num,chr(num))
oeasy
2024-11-04
700
[oeasy]python038_ range函数_大小写字母的起止范围_start_stop
print("a", ord("a"), sep=":") print("b", ord("b"), sep=":") print("c", ord("c"), sep=":")
oeasy
2024-10-28
680
[oeasy]python037_ print函数参数_sep分隔符_separator
oeasy
2024-10-21
1020
[oeasy]python036_数据类型有什么用_type_类型_int_str_查看帮助
oeasy
2024-10-08
550
[oeasy]python035_根据序号得到字符_chr函数_字符_character_
oeasy
2024-09-23
820
[oeasy]python034_计算机是如何认识abc的_ord函数_字符序号_ordinal_
oeasy
2024-09-18
740
[oeasy]python0033_先有操作系统还是先有编程语言_c语言是怎么来的
oeasy
2024-09-09
630
[oeasy]python0032_ 火星文字幕_os_操作系统的作用_time_sleep_延迟
oeasy
2024-09-02
750
[oeasy]python031_[趣味拓展]unix起源_Ken_Tompson_Ritchie_multics
[趣味拓展]unix起源_Ken_Tompson_Ritchie_multics 🥋 回忆上次内容
oeasy
2024-08-26
760
[oeasy]python0030_动态控制断点_breakpoints_debug_调试
030_动态控制断点_breakpoints_debug_调试290 播放 · 0 赞同视频
oeasy
2024-08-19
970
[oeasy]python029_ until_直接跳转到_unt_breakpoint_断点函数
until_直接跳转到_unt_breakpoint_断点函数 🥋 回忆上次内容
oeasy
2024-08-12
720
[oeasy]python0028_女性程序员_Eniac_girls_bug_Grace
oeasy
2024-08-05
820
调试程序的故乡_调试程序_debug_next_下一步_list_pdb3
oeasy
2024-07-29
800
[oeasy]python0026_调试程序_pdb3_帮助_help_求助_文档
print("1982------Guido in cwi")print("1995------Guido in cnri")print("2000------Guido in beopen")print("2005------Guido in google")print("2012------Guido in dropbox")print("2020------Guido in microsoft")
oeasy
2024-07-22
900
[oeasy]python0025_ 顺序执行过程_流水_流程_执行次序
oeasy
2024-07-17
640
[oeasy]python024_vim读取文件_从头复制到尾_撤销_重做_reg_寄存器
oeasy
2024-07-08
1070
[oeasy]python020在游戏中体验数值自由_勇闯地下城_终端文字游戏
# @Version : 2.0 # @Time : 2022/09/25 # @Author : oeasy import time print('=========== Welcome to Underground! ============') print(''' , _..._ , {'. .' '. .'} { ~ '. _|= __|_ .' ~} { ~ ~ '-._ (___________) _.-'~ ~ } {~ ~ ~ ~.' '. ~ ~ } { ~ ~ ~ / /\ /\ \ ~ ~ } { ~ ~ / __ __ \ ~ ~ } { ~ /\/ -<( o) ( o)>- \/\ ~ ~} { ~ ;( \/ .-. \/ ); ~ } { ~ ~\_ () ^ ( ) ^ () _/ ~ } '-._~ \ (`-._'-'_.-') / ~_.-' '--\ `'._'+'_.'` /--' \ \`-'/ / `\ '-' /' `\ /' '-...-' ''') hp = 0 att = 0 defend = 0 monsterLevel = 0 job = input('''Select Your Job(a or b): A:Warrior B:Magic ''' ) while (job != "a" and job != "A" and job != "b" and job != "B"): print("Input Error,Please input a or b") job = input('''Select Your Job: A:Warrior B:Magic ''') level = int(input('Select Your Level:') ) monsterLevel = int(input('Select Enemy Level:') ) if job == "a" or job == "A": hp = 800 + level * 59 att = 100 + level * 10 defend = 20 + level * 5 if job == "b" or job == "B": hp = 500 + level * 35 att = 120 + level * 19 defend = 15 + level * 3 print('You Level is 是{},Attack{},Hp{},Defence{}' .format(level, att, hp,defend)) print("=========== Fight began ==============") bosshp = 10000 + monsterLevel*30 bossatt = 50 + monsterLevel * 8 bossdef = 50 while bosshp >= 0 and hp >= 0: hp = hp - bossatt print("\33[41mBoss\33[0m attack \33[42myou\33[0m!,HP - {},HP remain:{}".format(bossatt, hp)) bosshp = bosshp - att; print("\33[42mYou\33[0m attack \33[41mBoss\33[0m,Hit {} ,remain HP:{}".format(att,bosshp)) print("==================================") time.sleep(0.5) if hp <= 0: print("You lose ,Try again! (May
oeasy
2024-06-05
750
[oeasy]python019_ 如何在github仓库中进入目录_找到程序代码_找到代码
oeasy
2024-05-29
1150
点击加载更多
社区活动
【纪录片】中国数据库前世今生
穿越半个世纪,探寻中国数据库50年的发展历程
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档