我有一个非常基本的github设置,包含自述文件,目录和其中包含html文件的另一个目录.在github上我只能查看自述文件和第一个文件夹,但没有查看其内容,我收到此消息
tc349 ryntc3$ git add *
tc349 ryntc3$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: week1 (modified content)
no changes added to commit (use "git add" and/or "git commit -a")
Run Code Online (Sandbox Code Playgroud)
我觉得如果我要加上所有要上演的那不应该是一个问题.有帮助吗?
我试图让我的程序在用户输入y/n时重复,但是我对如何使用这种类型的输入时使用true感到困惑,下面是一些代码.
again = input("Would you like to play again? enter y/n: ")
if again == "n":
print ("Thanks for Playing!")
quit
if again == "y":
print ("Lets play again..")
????
Run Code Online (Sandbox Code Playgroud)
另外,如果用户输入不同的字符,我想做一个else语句,但我不确定如何去做,因为我有2个不同的if语句.
我认为我的浮标有问题,它们没有正确对齐,我觉得这与我设置盒子的方式有关。我尝试过更改左右边距的对齐方式,但没有得到所需的外观,我希望将其全部排列起来。这是html和css。
超文本标记语言
<div id="service1">
<center>
<h1>Savings <br />Strategies</h1>
<img src="images/eg1.png" class="alignleft" height="150" width="200" alt="" />
</center>
</div>
<div id="service2">
<center>
<h1>Vendor <br />Management</h1>
<img src="images/eg2.png" class="alignleft" height="150" width="200" alt="" />
</center>
</div>
<div id="service3">
<center>
<h1>Environmental<br /> Stewardship</h1>
<img src="images/eg3.png" class="alignleft" height="150" width="200" alt="" />
</center>
</div>
Run Code Online (Sandbox Code Playgroud)
CSS
#service1 {
float:left;
width:360px;
height:280px;
padding:15px;
}
#service2 {
margin-left:auto;
margin-right:auto;
width:360px;
height:280px;
padding:15px;
}
#service3 {
float:right;
width:360px;
height:280px;
padding 15px;
}
Run Code Online (Sandbox Code Playgroud)
提前致谢!
我是python的新手,并且在课堂作业方面遇到了困难.
这是我的代码:
print ('Plants for each semicircle garden: ',round(semiPlants,0))
Run Code Online (Sandbox Code Playgroud)
这是打印的内容:
('Plants for each semicircle garden:', 50.0)
Run Code Online (Sandbox Code Playgroud)
如你所见,我得到括号和撇号,我不想显示.
python ×2
alignment ×1
css ×1
css-float ×1
git ×1
github ×1
html ×1
if-statement ×1
printf ×1
python-3.x ×1
while-loop ×1