Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第一周的第一个小作业 刚折腾好pull request是啥 #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions _src/om2py0w/0wex0/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#-*- coding: utf-8-*-
#Quick Python Script Explanation for Progeammers
#给程序员的超快速Py脚本解说
import os

def main():
print 'Hello World:'

print "这是Alice\的问候."
print '这是Bob\ ‘的问候'

foo(5,10)

print '=' * 10
print '这将直接执行'+os.getcwd()

counter = 0
counter += 1

food = ['苹果','杏子','李子','梨']
for i in food :
print '俺就爱整只:'+i

print '数到10'
for i in range(10):
print i

def foo(param1, secondParam):
res = param1+secondParam
print '%s 加 %s 等于 %s'%(param1, secondParam, res)
if res < 50:
print '这个'
elif (res>=50) and ((param1==42) or (secondParam==24)):
print '那个'
else:
print '嗯。。。'
return res


if __name__=='__main__':
main()