V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  TrancyD  ›  全部回复第 2 页 / 共 2 页
回复总数  22
1  2  
2018-11-18 22:54:52 +08:00
回复了 chaodada 创建的主题 PHP 新来一个同事做 PHP 两年 不会写九九乘法表。。。。
for i in range(1, 10):
for j in range(1, 10):
if i <= j:
print("{} * {} = {}".format(i, j, i * j), end='\t')
print()



1 * 1 = 1 1 * 2 = 2 1 * 3 = 3 1 * 4 = 4 1 * 5 = 5 1 * 6 = 6 1 * 7 = 7 1 * 8 = 8 1 * 9 = 9
2 * 2 = 4 2 * 3 = 6 2 * 4 = 8 2 * 5 = 10 2 * 6 = 12 2 * 7 = 14 2 * 8 = 16 2 * 9 = 18
3 * 3 = 9 3 * 4 = 12 3 * 5 = 15 3 * 6 = 18 3 * 7 = 21 3 * 8 = 24 3 * 9 = 27
4 * 4 = 16 4 * 5 = 20 4 * 6 = 24 4 * 7 = 28 4 * 8 = 32 4 * 9 = 36
5 * 5 = 25 5 * 6 = 30 5 * 7 = 35 5 * 8 = 40 5 * 9 = 45
6 * 6 = 36 6 * 7 = 42 6 * 8 = 48 6 * 9 = 54
7 * 7 = 49 7 * 8 = 56 7 * 9 = 63
8 * 8 = 64 8 * 9 = 72
9 * 9 = 81
2018-11-01 17:26:37 +08:00
回复了 TwoDogSon 创建的主题 程序员 chrome 插件->csdn->自动点击阅读更多
// ==UserScript==
// @name clean csdn
// @namespace http://jishux.net/
// @version 0.1
// @description try to take over the world!
// @author Trancy
// @match https://blog.csdn.net/*
// @grant none
// @require https://www.jishux.com/js/jquery-3.3.1.min.js
// ==/UserScript==

(function() {
'use strict';
var $ = window.$ || $
var host = window.location.host
$('.recommend-right,#csdn-toolbar,aside,.tool-box').remove();
$('main').css('float','unset').css('margin','auto')
$('div.article_content').removeAttr('style')
$('#btn-readmore').parent().remove()
})();
扔进油猴直接用
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3029 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 13:42 · PVG 21:42 · LAX 05:42 · JFK 08:42
Developed with CodeLauncher
♥ Do have faith in what you're doing.