Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (8)
Tags (1)
master
independent-visualizer
opt-ipy
cumulative_mode
play-with-transitions
d3ify-stack
modularize
experiment-with-d3
v-Aug8-for-DeNero
master
Branches (8)
Tags (1)
master
independent-visualizer
opt-ipy
cumulative_mode
play-with-transitions
d3ify-stack
modularize
experiment-with-d3
v-Aug8-for-DeNero
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (8)
Tags (1)
master
independent-visualizer
opt-ipy
cumulative_mode
play-with-transitions
d3ify-stack
modularize
experiment-with-d3
v-Aug8-for-DeNero
OnlinePythonTutor
/
v1-v2
/
edu-python.css
OnlinePythonTutor
/
v1-v2
/
edu-python.css
edu-python.css 10.86 KB
Copy Edit Raw Blame History
Philip Guo authored 2012年09月02日 02:07 +08:00 . another big renaming of v2/ -> v1-v2/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628
/*
Online Python Tutor
https://github.com/pgbovine/OnlinePythonTutor/
Copyright (C) 2010-2012 Philip J. Guo (philip@pgbovine.net)
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/*
Color scheme ideas:
Current scheme: pastel blue and yellow with a hint of red:
http://colorschemedesigner.com/#3N32mmmuew0w0
Primary Color:
3D58A2 41507A 142B69 6F89D1 899CD1
Secondary Color A:
EBF048 B1B456 989C17 F4F776 F5F798
Secondary Color B:
F15149 B55B56 9D1E18 F87D76 F89D99
Alternates:
pastel green, yellow, and purple:
http://colorschemedesigner.com/#2P32PbX--w0w0
Primary Color:
A0FFA0 8ABF8A 34A634 B8FFB8 CBFFCB
Secondary Color A:
FFEFA0 BFB68A A69234 FFF3B8 FFF6CB
Secondary Color B:
BFABFF 9B90BF 5237A6 CFC0FF DCD1FF
pastel blue and yellow:
http://colorschemedesigner.com/#0W21TjruJw0w0
Primary Color:
F5C260 B89B64 9F741F FAD388 FADEA6
Complementary Color:
4A67A4 49597B 18326A 7C97D1 93A7D1
*/
body {
background-color: white;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 10pt;
}
a {
color: #3D58A2;
}
a:visited {
color: #3D58A2;
}
a:hover {
color: #3D58A2;
}
span {
padding: 0px;
}
.codeInputPane {
font-size: 12pt;
font-family: Andale mono, monospace;
/*font-weight: bold;*/
padding: 8px;
margin-top: 5px;
}
#pyInputPane {
text-align: center;
margin-bottom: 20px;
}
td#stack_td,
td#heap_td {
vertical-align:top;
font-size: 12pt;
}
table#pyOutputPane {
padding: 15px;
}
#dataViz {
margin-left: 30px;
}
table.frameDataViz {
border-spacing: 0px;
font-size: 12pt;
margin-top: 5px;
margin-left: 15px;
background-color: #dddddd;
padding: 5px;
}
table.frameDataViz td.varname {
text-align: right;
padding: 5px;
padding-right: 8px;
border-right: 1px dashed #888888;
}
table.frameDataViz td.val {
padding-left: 8px;
padding-right: 5px;
padding-top: 8px;
padding-bottom: 8px;
}
div#pyCodeOutputDiv {
max-width: 550px;
max-height: 620px;
overflow: auto;
/*margin-bottom: 4px;*/
}
table#pyCodeOutput {
font-family: Andale mono, monospace;
font-size:12pt;
line-height:1.1em;
border-spacing: 0px;
border-top: 1px solid #999999;
padding-top: 3px;
border-bottom: 1px solid #999999;
margin-top: 6px;
}
/* don't wrap lines within code output ... FORCE scrollbars to appear */
table#pyCodeOutput td {
white-space: nowrap;
}
table#pyCodeOutput .lineNo {
background-color:#FFFFFF;
color:#AAAAAA;
margin:0;
padding:0.2em;
padding-right:0.5em;
text-align:right;
width:2.1em;
}
table#pyCodeOutput .cod {
/*font-weight: bold;*/
margin-left: 3px;
padding-left: 7px;
text-align: left; /* necessary or else doesn't work properly in IE */
}
div#editCodeLinkDiv {
text-align: center;
margin-top: 12px;
margin-bottom: 4px;
}
#editCodeLinkOnError {
color: #142B69;
}
#errorOutput {
background-color: #F87D76;
font-size: 12pt;
padding: 2px;
line-height: 1.5em;
margin-bottom: 4px;
}
button.bigBtn {
font-size: 14pt;
padding: 3px;
}
button.medBtn {
font-size: 12pt;
padding: 3px;
}
/* VCR control buttons for stepping through execution */
#vcrControls {
margin-top: 10px;
margin-bottom: 15px;
}
#vcrControls button {
margin-left: 5px;
margin-right: 5px;
}
#pyStdout {
border: 1px solid #999999;
font-size: 12pt;
padding: 4px;
font-family: Andale mono, monospace;
}
.vizFrame {
margin-bottom: 20px;
padding-left: 8px;
border-left: 2px solid #cccccc;
}
/* Python data value rendering */
.nullObj {
color: #555555;
}
.numberObj {
}
.boolObj {
}
.stringObj {
/* don't add a color since strings need to be rendered against various backgrounds */
font-family: Andale mono, monospace;
}
.keyObj {
}
.customObj {
font-family: Andale mono, monospace;
/*font-style: italic;*/
font-size: 10pt;
}
.retval,
.returnWarning {
font-size: 9pt;
}
.returnWarning {
padding-top: 10px;
color: #9d1e18;
}
table.listTbl {
border: 0px solid black;
background-color: #F5F798;
border-spacing: 0px;
}
table.tupleTbl {
background-color: #dddddd; /* must match .frameDataViz background-color */
border-spacing: 0px;
color: black;
border-bottom: 1px solid #555555; /* must match td.tupleHeader border */
border-top: 1px solid #555555; /* must match td.tupleHeader border */
border-right: 1px solid #555555; /* must match td.tupleHeader border */
}
table.listTbl td.listHeader,
table.tupleTbl td.tupleHeader {
padding-left: 5px;
padding-top: 3px;
font-size: 8pt;
color: #666666;
text-align: left;
border-left: 1px solid #555555;
}
table.listTbl td.listElt {
border-bottom: 1px solid #555555; /* must match td.listHeader border */
border-left: 1px solid #555555; /* must match td.listHeader border */
}
table.tupleTbl td.tupleElt {
border-left: 1px solid #555555; /* must match td.tupleHeader border */
}
table.listTbl td.listElt,
table.tupleTbl td.tupleElt {
padding-top: 0px;
padding-bottom: 8px;
padding-left: 10px;
padding-right: 10px;
vertical-align: bottom;
}
table.setTbl {
border: 1px solid black;
/*background-color: #F4F776;*/ /*slightly brighter than #F5F798 */
background-color: #F5F798;
border-spacing: 0px;
text-align: center;
}
table.setTbl td.setElt {
padding: 8px;
}
table.dictTbl {
border-collapse: collapse;
border-spacing: 2px;
}
table.dictTbl tr.dictEntry {
border: 1px #111111 solid;
}
table.dictTbl td.dictKey {
background-color: #41507A;
}
table.dictTbl,
table.dictTbl td.dictVal {
background-color: #899CD1;
}
table.classTbl {
background-color: #dddddd;
border-collapse: collapse;
border-spacing: 2px;
}
table.classTbl tr.classEntry {
border: 1px #777777 solid;
}
table.classTbl td.classKey {
background-color: #222222;
}
table.classTbl td.classVal {
background-color: #ffffff;
}
table.instTbl {
border-collapse: collapse;
border-spacing: 2px;
}
table.instTbl tr.instEntry {
border: 1px #111111 solid;
}
table.instTbl td.instKey {
background-color: #41507A;
color: #ffffff;
}
table.instTbl,
table.instTbl td.instVal {
background-color: #FFFFDD; /* must match color of table.instTbl */
}
table.dictTbl td.dictKey,
table.classTbl td.classKey,
table.instTbl td.instKey {
color: #dddddd;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 10px;
padding-right: 8px;
text-align: right;
vertical-align: center;
}
table.dictTbl td.dictVal,
table.classTbl td.classVal,
table.instTbl td.instVal {
padding-top: 10px;
padding-bottom: 10px;
padding-right: 10px;
padding-left: 8px;
vertical-align: center;
}
.typeLabel {
font-size: 8pt;
color: #222222;
margin-bottom: 1px;
}
td.dictKey .typeLabel {
color: #eeeeee;
}
.circRefLabel {
font-size: 10pt;
color: #222222;
}
#footer {
text-align: center;
color: #666666;
font-size: 9pt;
max-width: 700px;
border-top: 1px solid #bbbbbb;
padding-top: 5px;
margin-top: 5px;
}
/* new stuff added for Online Python Tutor "2.0" release */
div#stack {
float: left;
padding-left: 10px;
padding-right: 30px;
border-right: 1px dashed #bbbbbb;
}
div.stackFrame {
background-color: #ffffff;
margin-bottom: 15px;
padding: 2px;
padding-left: 6px;
padding-right: 6px;
padding-bottom: 4px;
font-size: 11pt;
border-left: 1px solid #999999;
}
/* apply to the currently selected stack frame (e.g., on mouse hover) */
div.selectedStackFrame {
background-color: #dddddd;
}
div.topStackFrame {
border-left: 1px solid #F15149;
}
div.stackFrameHeader {
font-family: Andale mono, monospace;
font-size: 10pt;
margin-top: 4px;
margin-bottom: 3px;
}
div.inactiveStackFrameHeader {
/* simulate a hyperlink */
text-decoration: underline;
color: #3D58A2;
cursor: pointer;
}
td.stackFrameVar {
text-align: right;
padding-right: 8px;
padding-top: 3px;
padding-bottom: 3px;
}
td.stackFrameValue {
text-align: left;
border-bottom: 1px solid #aaaaaa;
border-left: 1px solid #aaaaaa;
padding-top: 3px;
padding-left: 3px;
padding-bottom: 3px;
}
.stackFrameVarTable tr {
}
.stackFrameVarTable {
text-align: right;
padding-top: 3px;
/* right-align the table */
margin-left: auto;
margin-right: 0px;
}
div#heap {
float: left;
padding-left: 30px;
}
div.heapObject {
margin-bottom: 15px;
padding-left: 7px; /* leave some room for connector endpoints */
}
div#stackHeader {
margin-bottom: 15px;
text-align: right;
}
div#heapHeader {
margin-top: 2px;
margin-bottom: 13px;
}
div#stackHeader,
div#heapHeader {
color: #333333;
font-size: 10pt;
}
/* styles for Online Python Tutor questions site */
#questionsHeaderPane {
text-align: left;
margin-bottom: 15px;
width: 650px;
border-bottom: 1px solid #bbbbbb;
}
.questionsHeaderStmt {
margin-bottom: 5px;
}
.questionsHeaderTitle {
margin-bottom: 5px;
font-weight: bold;
font-size: 12pt;
}
#submittedCodeRO {
font-size: 10pt;
font-family: Andale mono, monospace;
padding: 4px;
margin-top: 5px;
}
table#gradeMatrix {
margin-top: 12px;
}
table#gradeMatrix thead {
font-weight: bold;
border: solid;
}
table#gradeMatrix thead td.statusCell {
padding-left: 18px; /* to line up with smiley faces */
}
table#gradeMatrix td.testInputCell,
table#gradeMatrix td.testOutputCell {
padding-right: 25px;
padding-bottom: 10px;
vertical-align: middle;
}
table#gradeMatrix tbody td.statusCell,
table#gradeMatrix tbody td.expectedCell {
padding-left: 12px;
padding-bottom: 10px;
vertical-align: middle;
}
td.testInputVarnameCell,
td.testOutputVarnameCell {
padding-right: 2px;
text-align: right;
}
td.testInputValCell,
td.testOutputValCell {
padding-right: 5px;
}
pre#submittedCodePRE {
font-size: 10pt;
font-family: Andale mono, monospace;
background-color: #dddddd;
padding: 5px;
}
div#submittedSolutionDisplay {
width: 650px; /* to line up with questionsHeaderPane */
text-align: left;
font-size: 12pt;
margin-bottom: 20px;
}
#gradeSummary {
margin-top: 12px;
}
#pyGradingPane {
margin-bottom: 20px;
}
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wython/OnlinePythonTutor.git
git@gitee.com:wython/OnlinePythonTutor.git
wython
OnlinePythonTutor
OnlinePythonTutor
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /