shortcuts

Argument And Parameter

  • the user who use the function say "give you a argument".
  • the function say "Thank you for you parameter".
def printMyAddress(someName,houseNum):
    print somename
    print houseNum,
    print "Main Street"
    print "Ottawa,Ontario,Canada"
    print "K2M 2E9"
    print
printMyAddress("Carter Sande", "45")
printMyAddress("Jack Black", "64")
printMyAddress("Tom Green", "22")
printMyAddress("Todd White", "36")

def printMyAddress(myName):
    print myName
    print "123 Main Street"
    print "Ottawa,Ontario",Canada
    print "K2M 2E9"
    print 
printMyAddress("Carter Sande")

The function return the greatest common divisor

# Filename : test.py
# author by : www.runoob.com

# define a function
def hcf(x, y):
    """The function return the greatest common divisor"""
    # get the minimum value
    if x > y:
        smaller = y
    else:
        smaller = x

    for i in range(1, smaller + 1):
        if ((x % i == 0) and (y % i == 0)):
            hcf = i

    return hcf


# user enter two numbers 
num1 = int(input("enter the First number: "))
num2 = int(input("enter the Second number: "))

print(num1, "and", num2, "have the greatest common divisor that is", hcf(num1, num2))
The First ColumnThe Second Column
reformat selected imports重新格式化选定的导入
optimize使最优化[o:ptimaiz]
infer推断,猜想,推理
refactor this重构这个
module组件,模
video captioning视频字幕
keystroke按键
keymap键盘布局
specify the scheme you want to change指定要改的方案
quick switch scheme快速切换方案
interpreter翻译器[in'te:rprite(r)]
prefix key pressed前缀键按下
refactor重构
studio画室,工作室
clipboard剪贴板['klipbo:rd]
on the main menu在主菜单中
inspection[in'spektion]检验,检查
specify the desired scope指定期望范围
arrow key箭头键
arrow keys to locate the necessary files or folders查找必要文件或文件夹的箭头键
navigation bar导航栏
scratch file临时文件

the shorcuts of PyCharm

The First ColumnThe Sencond Column
Alt+Shift+Cquickly review your recent changes to the project
Ctrl+ space baruse basic completion
Ctrl+'switch 1.Color Scheme 2.Code Style Scheme 3.Keymap 4.View Mode 5.Look and Feel
Ctrl+Alt+Shift+Ito quickly find and run an inspection,start typing the name of the inspection or its group.Choose the desired inspection from the suggestion list and then specify the desired scope.
Ctrl+comments or uncomments the current line or several selected lines with single line comments.
Alt+Homeshow the Navigation bar,and arrow keys to locate the necessary files or folders.

转载于:https://www.cnblogs.com/hugeng007/p/9348439.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值