python3学习手册函数func_out()里的变量 str1 = str1 + " World" func_inner() return str1 if __name__ == "__main__": print(func_out()) 结果: Hello World ★第6章、python3内置函数 内置函数是指不用import导入任何模块就能直接使用的函数 包名x 下的__init__.py里的 __all__=[这里列出的函 数及变量] 一个模块被另一程序第一次导入时,其主程序将运行,若不想让它运 行,可做个判断: if __name__=="__main__": #被导入模块的主程序写这里,只有它自己执行时才运行这里的代码 else: #来自另一程序的调用 import sys as xx #将导入的模块名 tar.gz模块安装包一样打包我们的源代码并执行setup.py去安装我们 的代码模块,可以使用distu�ls模块里的setup函数去打包 例如,我们写的代码有cof.py及lee.py两个模块,main.py只是用于测试 的主函数 现在需要把cof.py及lee.py打包成一个安装包 在我们的源程序目录下再创建一个setup.py文件,内容如下: from distutils.core import0 码力 | 213 页 | 3.53 MB | 1 年前3
A Seat at the Table: IT Leadership in the Age of Agility - Part 2by: limiting agility and adding bureaucratic waste: exceptions must be put through an approval process standardization limits the space of possible solutions to a problem. if we mandate that projects Real Business of IT shares the traditional view of governance. The basics of the [governance] process involve project sponsors (1) developing a formal proposal that incorporates estimated benefits, risks of the Agile mindset and remain consistent with it. the investment decision and the oversight process would form a seamless continuum wherein the execution of the initiative would yield valuable information0 码力 | 7 页 | 387.61 KB | 5 月前3
A Seat at the Table - IT Leadership in the Age of Agilityquickly and with more good information available. “Failing” in this sense is simply an efficient process we use to select among alternatives. Shadow IT Agile ways of working support a community approach meet the needs of a part of the company, perhaps due to capacity constraints or to the governance process’s limitations. A picture of today’s emerging workforce. These characteristics of today’s emerging adapting. This is deeply opposed—let me say that again—deeply opposed to the control paradigm. If the main goal of IT leadership is to demonstrate that they can control projects and make them deliver according0 码力 | 7 页 | 387.48 KB | 5 月前3
The DevOps HandbookCreate a common build mechanism to create it on demand 2. Codified in automated environment build process iii. Environments will be stable, reliable, consistent, & secure c. CREATE OUR SINGLE REPOSITORY shippable code, demonstrated in a production-like environment, created from trunk using a one-click process, and validated with automated tests.” v. 2015 State of DevOps Report – trunk-based development predicts be performed frequently and easily d. AUTOMATE OUR DEPLOYMENT PROCESS i. Begin with documenting the steps for current deployment process ii. Simplify and automate through the steps 1. Packaging code0 码力 | 8 页 | 23.08 KB | 5 月前3
A Seat at the Table - IT Leadership in the Age of Agilitystick to a plan. Lean thinking gives that small team ways to speed up its inspecting and adapting process to maximize its impact. Continuous Delivery and DevOps place the entire value stream in the hands – a term of art in lean thinking – and be empowered as a team to own the entire value delivery process.Brining Lean Principles to Software Development: Kanban is David Anderson’s approach bringing Lean principles into software development while driving fear out of the transformation process through incremental change. Anderson provides four rules for implementing Kanban: 1. Start with 0 码力 | 4 页 | 379.23 KB | 5 月前3
The DevOps Handbookunderstand contributing factors and focus problem-solving. ii. Telemetry – An automated communications process by which measurements and other data are collected at remote points and are subsequently transmitted To Proceed When6. Ch. 18 – Create Review and Coordination Process to Increase Quality of Our Current Work a. Goal – enable Development and Operations to reduce risk controls 1. Lead to long lead times and diminish effectiveness of feedback from the deployment process 2. Increase friction by adding more steps/approvals which tends to increase batch size ii. Toyota 0 码力 | 8 页 | 24.02 KB | 5 月前3
The DevOps Handbooka way that focuses on the situational aspects of a failure’s mechanism and the decision- making process of individuals proximate to the failure.” – John Allspaw ii. Blameless Post-Mortem – Actions: 1 Protect our deployment pipeline vi. Integrate our deployment activities with our change approval process vii. Reduce reliance on separation of duties 2. Ch. 22 – Information Security as Everyone’s Job repository to detect suspicious code (API calls from certain types of test code) 4. Ensure every CI process is in an isolated container 5. Make the version control credentials of the CI system read-only0 码力 | 9 页 | 25.13 KB | 5 月前3
The Phoenix ProjectDeming). The Second Way is about creating the right to left feedback loops. The goal of almost any process improvement initiative is to shorten and amplify feedback loops so necessary corrections can be that we didn’t fill out the form right.” Lesson: Don’t let your change control process become a change prevention process. Don’t let your change control board become a bottleneck. The change control board0 码力 | 3 页 | 154.45 KB | 5 月前3
git 操作手册nothing to commit (create/copy files and use "git add" to track) # echo 'print("hello world")' > main.py #随便创建一个文件 # git add . #提交当前工作目录的所有文件到暂存区(add为暂存操 作),命令最后有一个点. # new file: main.py #暂存区有了一个新的文件:main.py # git commit -m "msgxxx" #将暂存区提交到仓库区(commit为提交操作),- m后指定本次提交的说明信息 1 file changed, 1 inser�on(+) create mode 100644 main.py # git config --global init.defaultBranch main #设置默认分支名为main,默认 为master;设置完成后,再init其他仓库,则默认名称生效(只对新创建仓库生 效) # git branch -m main #将当前分支更名为main ★tag操作 tag是git版本库的一个标记命令,指向0 码力 | 35 页 | 1.69 MB | 1 年前3
Velocity Conference 2015(New Relic) https://bit.ly/pull-request-your-culture How you change your process matters Terms: culture, metaprocess, process, entropy Actively discourage email: it is exclusive Where there any0 码力 | 4 页 | 176.79 KB | 5 月前3
共 18 条
- 1
- 2













