LoginSignup

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

More than 1 year has passed since last update.

コンピュータ演習A 21: Day 2nd(4/26) VS Code, REPL

Last updated at Posted at 2021-05-10

zoomのinstall

https://us06web.zoom.us/j/82973309034?pwd=bWlwY1lYRlQ5bzljK3RuL3ZVUHVXUT09

ミーティングID: 829 7330 9034
パスコード: 259520

python: VS Code, c2-3(repl_file)

VS Codeの解説

面構えをよくみてみる.

  • buttons
  • extensions(japanese, python)
  • settings(themes)
  • layout(activity bar, side bar, editor groups, panel, status bar)
  • menu, ショートカット

    Vscodeのlayout
    img
    https://code.visualstudio.com

interactive REPL

小さなcodeを試すための環境(Read Eval Print Loop)

  • ctrl-shift-p "python REPL" # 終了はctrl-d(mac) or ctrl-z(win10)

fileからの呼び出し

複雑な動作を保存したファイルを呼び出して実行

  • ctrl-n, ctrl-m k python, ctrl-s, run(右上三角)
  • ctrl-f5
  • ctrl-shift-p "python run ptyhon file in terminal"

課題

LUNA への提出

  • example03-05-04.pyを「ファイルの添付」を使って提出しよう.

    print("Shigeto R. Nishitani : "+str(37021234%3702))
    

    % は割り算のあまりを出してくれます.自分の情報(name, no)に書き換えてください.

  • 自己紹介,programmingに対する決意を「テキスト情報の入力」で述べよう.


  • source ~/Desktop/lecture_21s/CompAInfo/c2_vscode_repl.org
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up