⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 keyword_arguments.py

📁 python编程很好的入门材料,包括讲义和源码.
💻 PY
字号:
def printGameOver( playersName, totalKills ):
    print "Game Over... " + playersName + "!"
    print "Total Kills: " + str( totalKills ) + "\n"

# Now, lets call our new function and pass in some player names along with
# their total kills...

printGameOver( "camper_boy", 15 )
printGameOver( "Haxxor", 27 )
printGameOver( "c1pher", 51 )

#-------------------------------------------------------------------------------
# If we call the function using keyword arguemnts, order doesn't matter.
#-------------------------------------------------------------------------------

printGameOver( totalKills=12, playersName="killaHurtz" )

raw_input( "\nPress Enter to exit..." )

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -