联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Python编程Python编程

日期:2018-10-17 10:07

Python for Finance

Assignment 1


Name: _____________

Student ID: ___________


1. Modules


1.1 Show the python path (list of strings) of your computer (take a snapshot and insert it below).


1.2 Install the module “requests”, and take a snapshot to prove you can successfully import the module.


1.3 Find the directories where “requests” module is installed. Take a snapshot and insert it below.


1.4 Write your own module (contain only one function), prove you can successfully import the module, and call the functions within the module. Take a snapshot and insert it below.


2. Package


Suppose we are developing a game, one possible organization of packages and modules could be as shown in the figure below.


2.1 Create a package named as “Game”, create all the sub-packages and modules, and organize them according to the file structure shown as above figure. Replace below figure with your own snapshot of Game package.


2.2 Define a function in Sound->load.py, name the function as “sound_load”. Within the function, print out your student ID. Import the “Game” package, and call the function by Game.sound_load(). Take a snapshot and insert it below to prove the function can be successfully loaded.


版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp